Re: Afghanistan DHS [message #24531 is a reply to message #24530] |
Fri, 27 May 2022 03:17 |
schoumaker
Messages: 66 Registered: May 2013 Location: Belgium
|
Senior Member |
|
|
Hello,
This is due to the fact that you are weighting both the numerator and the denominator with awfactt.
You can try the syntax below.
Best,
Bruno
****
use AFIR71FL.DTA, clear
keep if v012>=15 & v012<=19
gene teenmom=0
replace teenmom=1 if v213==1|bidx_01==1
replace awfactt=awfactt/100
gene teenmom_prop=teenm/awfactt // divides each observation by the all-women factor
tabstat teenmom_prop [aw=v005*awfactt]
tabstat teenmom_prop [aw=v005*awfactt], by(v012) // by age
*** you will need to adapt the all women factor for comparisons by urban-rural, education etc.
Bruno Schoumaker
Centre for Demographic Research
Université catholique de Louvain
|
|
|