The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Nutrition and Anthropometry » Filtering children's data for nutrition indicators (Question about keeping only 6-23 month old children)
Re: Filtering children's data for nutrition indicators [message #30368 is a reply to message #30337] Thu, 14 November 2024 16:13 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:
Either sequence of steps will work, but I agree with you that it would be more efficient to restrict the age range to 6-23 months in the first step. I will paste below the Stata lines to identify the reference child with "egen seq()". Some people add a step to require that b5=1, but that is not necessary because if b9=0 then b5 must be 1.
* Steps to find the youngest child age 6-23 months living with the mother

* Illustrate with Nepal 2022 survey, KR file

 

use "...NPKR82FL.DTA", clear

gen select=0

egen sequence=seq() if b19>=6 & b19<=23 & b9==0, by(v001 v002 v003 bidx)

replace select=1 if sequence==1
 
Read Message
Read Message
Previous Topic: Mismatched Child Counts in Stunting Analysis vs. DHS Rwanda Report
Next Topic: surveillance et suivi de la croissance de l'enfant
Goto Forum:
  


Current Time: Fri Nov 29 20:07:48 Coordinated Universal Time 2024