Re: Afghanistan DHS [message #24532 is a reply to message #24531] |
Fri, 27 May 2022 03:24 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to previous message](/theme/default/images/down.png) |
schoumaker
Messages: 65 Registered: May 2013 Location: Belgium
|
Senior Member |
|
|
Hello again,
The syntax that Tom Pullum sent you a few days ago is better (and also provides confidence intervals).
Bruno
***
use AFIR71FL.DTA, clear
keep if v012>=15 & v012<=19
gene teenmom=0
replace teenmom=1 if v213==1|bidx_01==1
gen wt=v005/1000000
svyset [pw=wt], psu(v021) strata(v023) singleunit(centered)
gen awfact = awfactt/100
svy: ratio teenmom/awfact
Bruno Schoumaker
Centre for Demographic Research
Université catholique de Louvain
|
|
|