The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » Weighting data
Re: Weighting data [message #3013 is a reply to message #2992] Fri, 03 October 2014 11:34 Go to previous messageGo to previous message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 805
Registered: January 2013
Senior Member
I had to guess at what you are trying to do. I presume that you are working with the household recode (HR) dataset (NPHR60FL.dta) and you are trying to match the number of household members. Your message doesn't actually state what you are doing, but I think this is right.

In your commands below the variable names should be lower case, but I assume that you used these correctly as you would have received error messages from stata, and that the mistake was just in retyping them here.
I am also guessing the you meant to use hv009 in the svy: mean command and not V009.

hv009 gives the total number of members listed in the household roster, including both usual members of the household and visitors that slept in the household the previous night.
To match the numbers in the report (I'm guessing you are referring to table 2.10, but you didn't state which numbers and which indicators you were trying to reproduce) you would need to use only the de jure (usual) members of the household. The count of de jure (usual) members of the household is given in hv012. Thus use:
svy: mean hv012
to produce the result in table 2.10
 
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:16:35 Coordinated Universal Time 2025