The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » Descriptives and chisq
Descriptives and chisq [message #8881] Mon, 11 January 2016 09:53 Go to previous message
cbdolan is currently offline  cbdolan
Messages: 17
Registered: March 2013
Location: Williamsburg, VA
For this analysis, I'm using the 2007 and 2013/14 DRC.

In order to provide unbiased estimates, sampling weights based on the probabilities of selection from the underlying population and non-responses were taken into account using the following code and then applying it through the svy: command

gen wgt=v005/1000000
egen stratum=group (v024 v025)
svyset [pw=wgt], psu(v021) strata(stratum)

Now I am creating my descriptive table. The DHS weighting videos recommend this syntax:

tab female treat [iweight=wgt]

However, this doesn't allow for a chisq option. Is the following syntax a correct alternative? This gives me proportions as well as the associated chisq:

svy: tab female treat


Read Message
Read Message
Previous Topic: Weighting district-level data
Next Topic: Weighting Data Question
Goto Forum:

Current Time: Mon Jun 17 06:46:37 Coordinated Universal Time 2024