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 #1755 is a reply to message #1717] Wed, 02 April 2014 12:27 Go to previous messageGo to previous message
user-rhs is currently offline  user-rhs
Messages: 132
Registered: December 2013
Senior Member
Malayaka,
You need to replace "var" in tab var [iweight=wgt] with the actual variable name. Remember that Stata is case sensitive, i.e. V005 and v005 are two different variables (according to Stata).

One other thing: I wasn't sure why the DHS website told you to use iweight instead of pweight. My understanding is that v005 is the sampling weight, therefore pweight should be used instead of iweight. Note that iweight is equivalent to "weight" in SPSS, which the Stata documentation has labelled as "vague." I hope someone from DHS can clarify this.

HTH,
RHS
 
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:24:57 Coordinated Universal Time 2024