Table 5.5 Birth intervals [message #28603] |
Mon, 05 February 2024 08:03 |
sokiya
Messages: 78 Registered: May 2017 Location: Nairobi
|
Senior Member |
|
|
Hi,
I am trying to replicate the results found in Table 5.5 Birth intervals using the code below
use "KEBR8AFL.dta", clear
//Group mother's age groups for birth interval table
recode v013 (1=1 "15-19") (2/3 = 2 "20-29") (4/5 = 3 "30-39") (6/7 = 4 "40-49"), gen(fe_age_int) label(fe_age_int_lab)
label var fe_age_int "Age groups for birth intervals table"
//Create birth interval, excluding first births and their multiples
gen fe_bord = bord if b0 < 2
replace fe_bord = bord - b0 + 1 if b0 > 1
recode fe_bord (1 =1 "1") (2/3 = 2 "2-3") (4/6 = 4 "4-6") (7/max = 7 "7+"), gen(fe_bord_cat) label(fe_bord_lab)
label var fe_bord_cat "Birth order categories"
//Birth interval, number of months since preceding birth
recode b11 (min/17= 1 "less than 17 months") (18/23 = 2 "18-23 months") ///
(24/35 = 3 "24-35 months") (36/47 = 4 "36-47 months") (48/59 = 5 "48-59 months") ///
(60/max = 6 "60+ months"), gen(fe_int) label(fe_int_lab)
label var fe_int "Months since preceding birth"
ta fe_int [fweight=v005] if fe_bord != 1
but there's a discrepancy in the estimates in the total row. Any help will be appreciated.
Thanks in advance!
|
|
|
|
|