The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » General » FGC and daughter's line number
Re: FGC and daughter's line number [message #26439 is a reply to message #26404] Mon, 20 March 2023 16:22 Go to previous message
Janet-DHS is currently offline  Janet-DHS
Messages: 893
Registered: April 2022
Senior Member
Following is a response from DHS staff member, Tom Pullum:

The variable fg111 gives the value of bidx for this daughter; bidx is the number of the child in the birth history, in which bidx=1 is the most recent birth, bidx=2 is the next most recent birth, etc. The following Stata lines will pull out the age for the child in the birth history that has bidx equal to fg111.

use "...BJIR41FL.DTA", clear

tab fg111

* The highest value of fg111 (line number of last circumcised daughter) is 11.
* You can use 11 in the loop below or just use 20, the maximum possible value of bidx.

* Remove leading zeroes in subscripts for b8
rename b8_0* b8_*

gen age_fg111=.
forvalues li=1/20 {
replace age_fg111=b8_`li' if fg111==`li'
}

tab age_fg111
 
Read Message
Read Message
Previous Topic: Percentage of Adolescents (age 10-19) who are married from Household Data
Next Topic: Map with GIS points?
Goto Forum:
  


Current Time: Fri Nov 29 12:35:02 Coordinated Universal Time 2024