The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » General » Wrong numbers
Re: Wrong numbers [message #2860 is a reply to message #2017] Wed, 03 September 2014 09:55 Go to previous messageGo to previous message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 789
Registered: January 2013
Senior Member
Hi Mercy,

Your problem is two fold:
1) You are not selecting the de facto sample - you need to select on hv103==1
2) You should use iweights, not aweights. In fact we actually recommend that you use the svy commands in general, but for a simple crosstab like this iweights will suffice. Other posts in the forum describe the svy commands.

The following commands will produce the results to match the report:
generate weight= hv005/1000000
tab hv105 hv104 if hv103==1 [iweight = weight]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Afghanistan DHS Survey Persian Calendar
Next Topic: Head of house hold determinants
Goto Forum:
  


Current Time: Mon Apr 29 10:15:05 Coordinated Universal Time 2024