The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Nutrition and Anthropometry » Minimum acceptable diet
Re: Minimum acceptable diet [message #29885 is a reply to message #29865] Fri, 16 August 2024 10:20 Go to previous messageGo to previous message
Janet-DHS is currently offline  Janet-DHS
Messages: 888
Registered: April 2022
Senior Member
Following is a response from DHS staff member, Tom Pullum:
Before I check your construction of the food groups, I suggest that you replace this line:
egen sequence=seq() if b9==0 & b19>=6 & b19<=23 & m55<., by(v001 v002 v003)

with this line:
egen sequence=seq() if b9==0 & b19>=6 & b19<=23 & m55<., by(v001 v002 v003 bidx)

You want the youngest child for each mother, so bidx must be included in the "by()". Please let us know if this works.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: DHS Burundi 1987
Next Topic: Missing women's weight and height measurements in DHS-8
Goto Forum:
  


Current Time: Fri Nov 22 20:37:11 Coordinated Universal Time 2024