The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Nutrition and Anthropometry » Where can I find z-scores?
Re: Where can I find z-scores? [message #18130 is a reply to message #18129] Tue, 24 September 2019 14:21 Go to previous messageGo to previous message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 800
Registered: January 2013
Senior Member
No, the code provided is correct. The first line is if the day of birth was reported (hw16 <= 31), and the second line is used if the day of birth was not reported, i.e. is "don't know" (98) or missing (99), in which case the value of 15 is used as the midpoint of the month.

gen bdate = mdy(b1, hw16, b2) if hw16 <= 31
replace bdate = mdy(b1, 15, b2) if hw16 > 31

[Updated on: Tue, 24 September 2019 14:21]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 'Don't know' in exclusive breastfeeding
Next Topic: anemia prevalebce and associated factors in children aged 6-59 months
Goto Forum:
  


Current Time: Wed Jul 17 15:12:50 Coordinated Universal Time 2024