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
Age in months of the most recent child born in the last five years in the IR file of NFHS-4 [message #29191] Tue, 07 May 2024 07:40 Go to next message
Varsha is currently offline  Varsha
Messages: 33
Registered: November 2020
Member
Hello,

I was calculating the age in months of the most recent child born in the last five years in the IR file using the code: gen age = v008 - b3_01. I replaced the 'age' variable with a '.' when b5_01 is 0. hw1_1 in the same file also gives us the age in months, but when I run the code 'compare age hw1_1 if v208!=0', there are differences between the two variables. Why is it so? It is mentioned in the VI recode that HW1 is calculated from the country month code of the date of interview less the century month code of the date of birth of the child. I have followed the same thing for calculating the 'age' variable, even then there are differences.

Please help.

[Updated on: Tue, 07 May 2024 07:41]

Report message to a moderator

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 next message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3061
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
Re: Age in months of the most recent child born in the last five years in the IR file of NFHS-4 [message #29194 is a reply to message #29192] Tue, 07 May 2024 16:49 Go to previous message
Varsha is currently offline  Varsha
Messages: 33
Registered: November 2020
Member
Thank you, Tom.
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: Sun May 19 15:48:14 Coordinated Universal Time 2024