The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » HELP!: Analysis on youth-specific age group only
Re: HELP!: Analysis on youth-specific age group only [message #1717 is a reply to message #1632] Wed, 02 April 2014 00:25 Go to previous messageGo to previous message
malayaka is currently offline  malayaka
Messages: 18
Registered: March 2014
Member
Hello,

I am seeing that my STATA output does not match the Kenya 2010 DHS tables (most are off 1-4%). For example:

Percent of youth ages 20-24 who control their own cash earnings:
DHS: Females (35.2%); Males (47.9%)
STATA: Female (34.36%); Males (50%).

STATA code used:
use v005 v012 v013 v101 v102 v106 v149 v155 v190 v212 v313 v384a v384b v384c v501 v502 v511 v613 v714 v717 v731 v739 v763a v463z using "/Users/malayaka/Desktop/MWIR61FL.DTA
generate wgt = v005/1000000

The DHS website also indicated "tab var [iweight=wgt]" as part of the STATA code, but that gives me an error message stating that the variable is not found.

Am I missing something? Why am I getting different percentages when I crosstab my variables?

Please help!

Thank you in advance.
 
Read Message
Read Message
Read Message
Read Message
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: Missing data
Next Topic: browsing data
Goto Forum:
  


Current Time: Sun Nov 24 21:44:18 Coordinated Universal Time 2024