|
|
|
|
Re: How to calculate mother's age at most recent birth (last birth) in BDHS 2011 [message #15094 is a reply to message #15093] |
Fri, 01 June 2018 08:31 |
Hassen
Messages: 121 Registered: April 2018 Location: Ethiopia,Africa
|
Senior Member |
|
|
Dear user, Maternal age at birth is computed as follow:
Maternal age at birth=(B3-V011)/12
For SPSS user, we have to follow the following steps:
1) Open your SPSS Data set
2)Click Transform
3) Click Compute Variable
4)Write your target variable in the target variable box
5) Write the numeric expression (equation)
=(B3-V011)/12 into the Numeric Expression box.
6) Click "Ok"
#Then to Categorized (Recode) this variable follow the following steps:
1)Click Transform
2)Click recode into Different Variable
3) Choose your target variable and move into input variable box
4) Write the output variable "Name & Label"
5) Click "Change"
6) Click "Old and New values"
7)Click "Range,LOWEST through value:Then write for example 19.999 value into the box to exclude the value "20" Then give the value as you want (for example "1") & add
for Range values,for example 20-29 years
Click "Range" write "20" through"29" Then give value for example "2" Then Add
You can do all by this step. ~Finally Click Continue.
It may help you!!
I am a new DHS Forum user,You can search other sources for SPSS and also DHS users & experts may add for you.
With Best Wishes,Hassen
Hassen Ali(Chief Public Health Professional Specialist)
[Updated on: Fri, 01 June 2018 08:35] Report message to a moderator
|
|
|
|
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
|
|
|