Re: How to calculate mother's age at most recent birth (last birth) in BDHS 2011 [message #20064 is a reply to message #20045] |
Tue, 22 September 2020 16:20 |
Shireen-DHS
Messages: 140 Registered: August 2020 Location: USA
|
Senior Member |
|
|
Hello,
As described in the previous posts, you need the variables b3 and v011 to calculate mother's age at birth (if using BR or KR file). Below is the specific Stata code that creates three categories. You can recode to other categories using the same logic. If using the IR file you can use the same code but for the most recent birth b3_01 .
Best,
Shireen
The DHS Program
* mother's age at birth (years)
gen months_age=b3-v011
gen mageb=1 if months_age<20*12
replace mageb=2 if months_age>=20*12 & months_age<35*12
replace mageb=3 if months_age>=35*12
label define mageb 1"<20" 2"20-24" 3"35-49"
label values mageb mageb
|
|
|