The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Setting the Data for Survey Analysis-Stata
Setting the Data for Survey Analysis-Stata [message #27035] Tue, 13 June 2023 07:09 Go to previous message
dnameispaone is currently offline  dnameispaone
Messages: 19
Registered: February 2019
Member
Hi There,

I am trying to replicate the NFHS-5 tables related to Family Planning Indicators.

I using the following command to set my data for survey analysis

gen weight = v005/1000000
gen psu = v021
gen strata = v023

svyset psu [pw = weight], singleunit(certainty) strata(strata) vce(linearized)


svy, subpop (curr_married): tab ster, per missing ci format (%10.2f)
svy, subpop (ever_marry): tab ster, per missing ci format (%10.2f)


Are the above commands correct? Particularly the svyset command?

Because my results are not matching those given in the NFHS-5 report.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Number of married couple
Next Topic: command for Cluster Average of Women's employment
Goto Forum:
  


Current Time: Wed May 8 20:06:30 Coordinated Universal Time 2024