The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » India » Age in months of the most recent child born in the last five years in the IR file of NFHS-4
Re: Age in months of the most recent child born in the last five years in the IR file of NFHS-4 [message #29192 is a reply to message #29191] Tue, 07 May 2024 13:58 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3195
Registered: February 2013
Senior Member


Following is a response from Senior DHS Staff Member, Tom Pullum:

The following Stata lines will calculate the age of the youngest child in a way that is consistent with b8. Here "age" is not restricted to children who survived but is completed years since birth for all children. When you compare with b8_01, that comparison will automatically be just for the children who survived, because b8_01 is NA for children who died. Here is no need to condition on the value of v208; the calculation applies for any value of v208. Here, the last line restricts to the youngest child under 5. It shows that "age" and b8_01 agree exactly.

In a previous post you used "round" in place of "int". Here, as in that context, you need to use "int" to get completed years of age.

* Calculate the age of the most recent child in the IR file
use "...IAIR74FL.DTA", clear
gen age=int((v008-b3_01)/12)
tab age b8_01 if age<=4
 
Read Message
Read Message
Read Message
Previous Topic: Skilled assistance for the most recent live birth in the last 5 years preceding the survey (NFHS-4)
Next Topic: V024 -NFHS4 and NFHS5
Goto Forum:
  


Current Time: Tue Nov 12 18:07:44 Coordinated Universal Time 2024