Re: DHS Malawi - domestic violence among women 15-19 [message #2022 is a reply to message #2021] |
Mon, 14 April 2014 20:21 |
|
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
|
|
|