Reproduction of marriage data in report [message #12777] |
Wed, 12 July 2017 09:19 ![Go to next message Go to next message](/theme/default/images/down.png) |
Inez Roosen
Messages: 12 Registered: July 2016
|
Member |
|
|
Hello,
I am trying to reproduce the age at first marriage table (marriage by exact age) for Nepal DHS 1996 2001 2006 2011, and following the steps above I do not get the results of the DHS reports (for example DHS Nepal 2011 Table 6.4). Could it be that the proportions are calculated differently for waves with all women included?
I took the following steps to calculate the proportion of women married by 18:
g CM18=(v511<18)
gen wt=v005/1000000
svyset v021 [pw=wt], strata(v023)
gen aw = awfactt/100
svy: ratio CM18/aw if (v501==1|v501==2), over(v013)
Thank you so much.
Best,
Inez
|
|
|
Re: Reproduction of marriage data in report [message #13081 is a reply to message #12777] |
Fri, 15 September 2017 17:32 ![Go to previous message Go to previous message](/theme/default/images/up.png) |
Trevor-DHS
Messages: 802 Registered: January 2013
|
Senior Member |
|
|
I assume that you are comparing to table 4.3 in the 2011 report, not table 6.4 (which is about mean ideal number of children). Perhaps you were referring to a table in a prior report.
To match table 4.3, you just need to correct your svy: ratio command. In your current command, you are calculating the table just for married women, but this table includes all women. You also need to restrict it to women age 20+. You can use the following svy: ratio commands:
svy: ratio CM18/aw if v013 >= 2
svy: ratio CM18/aw if v013 >= 2, over(v013)
|
|
|