The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » Weighting variable in Pakistan 2012/13
Weighting variable in Pakistan 2012/13 [message #10382] Fri, 22 July 2016 07:10 Go to next message
Emily L is currently offline  Emily L
Messages: 1
Registered: July 2016
Member
Hi,
I am conducting a secondary data analysis using the individual women's file from the Pakistan 2012-13 dataset.
In the 'Guide to DHS Statistics' it states the command to use in SPSS in order to apply the sampling weights, is as follows:

COMPUTE rweight = V005/1000000
WEIGHT by rweight.

I put this into my SPSS syntax and the following error occurs in the output window:
Error #4381 in column 1. Text: WEIGHT
> the expression ends unexpectedly
>execution of this command stops

Column 1 in the data view is the Case ID values. In addition I could not underline 'rweight' in the syntax, if this is (one of) the problems?

Any help would be much appreciated.
Many thanks,
Emily



Kind Regards,
Emily
Re: Weighting variable in Pakistan 2012/13 [message #10416 is a reply to message #10382] Tue, 26 July 2016 10:48 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3215
Registered: February 2013
Senior Member
You are missing the period after "1000000".


COMPUTE rweight = V005/1000000.
WEIGHT by rweight.

Previous Topic: SPA survey Tanzania: Setting survey design and using weights for health facilities and health care p
Next Topic: Need to calculate country weight based on facilities when combining two SPA surveys?
Goto Forum:
  


Current Time: Mon Dec 30 09:29:07 Coordinated Universal Time 2024