The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Domestic Violence » DHS Malawi - domestic violence among women 15-19
Re: DHS Malawi - domestic violence among women 15-19 [message #2022 is a reply to message #2021] Mon, 14 April 2014 20:21 Go to previous messageGo to previous message
user-rhs is currently offline  user-rhs
Messages: 132
Registered: December 2013
Senior Member
If you use subpop, the subpop variable has to be an indicator variable (0/1). Otherwise, Stata treats everyone with value !=0 of that variable as ==1.

From the help file for svy:

subpop(subpop) specifies that estimates be computed for the single subpopulation identified by subpop, which is

[varname] [if]

Thus the subpopulation is defined by the observations for which varname!=0 that also meet the if conditions. Typically, varname=1 defines the subpopulation, and varname=0 indicates observations not belonging to the subpopulation. For observations whose subpopulation status is uncertain, varname should be set to a missing value; such observations are dropped from the estimation sample.


[Updated on: Mon, 14 April 2014 20:22]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Calculation of prevalence using STATA command
Next Topic: Missing cases in Severe Burn question- NFHS India
Goto Forum:
  


Current Time: Fri Nov 22 11:34:23 Coordinated Universal Time 2024