The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » Weighting data
Re: Weighting data [message #3028 is a reply to message #3013] Mon, 06 October 2014 10:23 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3216
Registered: February 2013
Senior Member
Here is additional comments from Senior Specialist, Tom Pullum:

If all you want to do is to calculate mean household size, then you do not need to make an adjustment for clusters and strata. That adjustment only affects the estimates of standard errors. You just need the adjustment for weights. You can use this with the HR file (NPHR60FL.dta):

summarize hv009 [iweight=hv005/1000000]

Or you can do the following (for pweights, it is not necessary to divide by 1000000):

svyset [pweight=hv005]
svy: mean hv009


Both of those will give 4.6289, which is probably what you were getting and does not match with the value in the report, 4.4. The reason you are not getting 4.4 is that the DHS figure is limited to de facto members of households, i.e. respondents for whom hv103=1 rather than 0. Try the following, with the PR file rather than the HR file, i.e. with NPPR60FL.dta:

collapse (sum) hv103 (first) hv005, by(hhid)
summarize hv103 [iweight=hv005/1000000]

This will give a mean of 4.39408, which matches the report.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Ghana 2008 Birth Recode Weights
Next Topic: Colombia 2010 weights
Goto Forum:
  


Current Time: Wed Jan 1 00:51:13 Coordinated Universal Time 2025