|NFHS-4 Median Birth interval [message #17992]
||Sun, 11 August 2019 11:28
Registered: June 2019
I am trying to calculate the median birth interval using STATA from the NFHS-4. However, I am getting the wrong median compared to the report. The report says the median in India is 32 months, however, I am getting 28 months.
I am subtracting 9 months from the variable as I want birth-to-pregnancy interval, not birth-to-birth. But even if I don't subtract 9, I get different values.
rename sdistri shdistri
tostring shdistri, replace
gen strata = shdistri
svyset v021 [pweight=weight], strata (strata)
keep shdistri v008 b3 bord b0 b11 v106 hv024 v025 v190 v447a v133 s301 hv001 hv002 hvidx v005 v021 weight strata
*Births in the month of interview are included and births 60 months before the interview are excluded.
replace monthssncbirth=. if monthssncbirth<=60
drop if monthssncbirth==.
*First-order births (and their twins) are excluded from both numerators and denominators.
svy: tab bord
gen birth_order=bord if (b0 > 1)
svy: tab birth_order
*subtract by 9 months to find birth-to-pregnancy interval (WHO)
replace birth_interval=. if birth_interval<0
Would appreciate some help please.
Thank you and best,