Re: BDHS2011 - Tab. 5.4 Children ever born and living [message #4429 is a reply to message #4418] |
Tue, 26 May 2015 07:32 |
geoK
Messages: 56 Registered: May 2014
|
Senior Member |
|
|
Dear Trevor, thanks a lot, this is really helpful. Can I please double check with you if I have understood it correctly, when calculating other indicators with different subpopulations:
For example,
If I want to calculate women's literacy (taking variable V155 and creating an indicator variable where LITERATE=1 and NOT-LITERATE=0, following tab. 3.3.1 definition of literate women) by Religion (V130):
1- should I create a new women factor specific for variable Religion (V130)? Given that the dataset lists 5 factors which look sub-pop specific: awfactt; awfactu; awfactr; awfacte; awfactw
2- assuming that the correct factor to use is called awfactt, and following your script, would the following be correct? (IN RED MY CHANGES)
* Set up svy paramaters
gen wt=v005/1000000
svyset v021 [pw=wt], strata(v023)
* All women factor
gen aw = awfactt/100
* Check the denominator
tab v130 [iw=aw*wt]
* Children ever born
gen Literacyw = (derived from V155 where 1=literate; 0=illiterate)
* Use the ratio of children ever born and all women
svy: ratio Literacyw/aw, over(v155)
svy: ratio Literacyw/aw
#################################################
RESULTS --> please see attached!
Thanks a lot,
regards
-
Attachment: RESULTS.pdf
(Size: 135.70KB, Downloaded 615 times)
|
|
|