The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Bangladesh » THE IMPACT OF SOCIOECONOMIC BACKGROUND AND BIRTH ATTRIBUTES ON INFANT MORTALITY IN BANGLADESH (for this title i have to mention the age of mother at birth but i could not find)
Re: THE IMPACT OF SOCIOECONOMIC BACKGROUND AND BIRTH ATTRIBUTES ON INFANT MORTALITY IN BANGLADESH [message #26505 is a reply to message #26488] Mon, 27 March 2023 15:01 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3199
Registered: February 2013
Senior Member

Following is a response from Senior DHS staff member, Tom Pullum:

The following Stata lines will construct this three-category version of the mother's age at the birth of the child. You should be able to translate it into SPSS. The function int(x) constructs the integer part of a number. For example, int(1.1) is 1, and int(1.7) is also 1. There should be something similar in SPSS.

* Mother's age at the birth of the child
gen moage_years=int((b3-v011)/12)
gen moage=1
replace moage=2 if moage_years>=20
replace moage=3 if moage_years>=35
label variable moage "Age at birth"
label define moage 1 "<20" 2 "20-34" 3 "35+"
label values moage moage
tab moage [iweight=wt]
drop moage_years

 
Read Message
Read Message
Previous Topic: Service availability in DHS 2014 - only government hospitals? and other questions
Next Topic: Calculation of standard error of stunting at small subpopulation such as district
Goto Forum:
  


Current Time: Mon Nov 25 20:53:31 Coordinated Universal Time 2024