The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » survey set preparation for Pakistan DHS 2012-13
survey set preparation for Pakistan DHS 2012-13 [message #2771] Fri, 22 August 2014 01:17 Go to next message
sohelruhrd is currently offline  sohelruhrd
Messages: 19
Registered: July 2014
Location: Bangladesh
Member

Can you help me to prepare a survey set for Pakistan DHS 2012-13. i made a survey set command in STATA. Please check my commands.

************************************************************ *****
//survey set preparation
************************************************************ *****
//Description of variables included in surveyset preperation
*v001: cluster number
*v023: stratification used in sample design
*v025: place of residence
*v005: women's individual sample weight (6 decimals)

gen psu=v001
gen strata = v023

gen sampwt=v005/1000000
svyset psu [pw = sampwt], strata(strata)
************************************************************ *****

Any comment on it will help me to work with the data set (individual record).
Thank you.
Shafiur


Re: survey set preparation for Pakistan DHS 2012-13 [message #2784 is a reply to message #2771] Mon, 25 August 2014 10:17 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3199
Registered: February 2013
Senior Member
Following is a response from Senior DHS Stata Specialist, Tom Pullum:

Those commands are correct. However, in Stata, the results for pweight will be exactly the same with either v005 or v005/1000000 (try it both ways and you will see that). Also, you do not have to create the new variables. The following command would be sufficient:

svyset v001 [pw = v005], strata(v023)
Previous Topic: Extracting Zimbabwe households with at least 1 birth in last 2 years
Next Topic: survey set preparation for Pakistan DHS 2012-13
Goto Forum:
  


Current Time: Sun Nov 24 22:29:18 Coordinated Universal Time 2024