The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Nutrition and Anthropometry » Slight difference in the Senegal Stunting, Wasting, Underweight prevalence (Slight difference in the Senegal Stunting, Wasting, Underweight prevalence result)
Re: Slight difference in the Senegal Stunting, Wasting, Underweight prevalence [message #24383 is a reply to message #24371] Thu, 05 May 2022 12:37 Go to previous messageGo to previous message
Janet-DHS is currently offline  Janet-DHS
Messages: 666
Registered: April 2022
Senior Member
Following is response from DHS Research & Data Analysis Director, Tom Pullum:

I see some possible problems with your code. First, the three Z scores have different legal ranges. The ranges are for the HAZ are -6 to +6, for the WAZ are -6 to +5, for the WHZ are -5 to +5. Second, and probably the main problem, is that a line such as "replace stunting=0 if haz>=-2" will include the NA (.) cases as 0. You can replace lines such as these:

gen stunting=1 if haz<-2
replace stunting=0 if haz>=-2
replace stunting=. if haz==.
With just the following following two lines:

gen stunting=0 if haz<6
replace stunting=1 if haz<-2
For any other values of the haz, stunting will be a dot, so you don't need a third line.

Stunting, etc., can be calculated from the KR file as well as the PR file. It is then limited to children who are living with the mother, but can be linked to information about the child and mother that is not in the PR file.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: MDD-W for Rwanda
Next Topic: Sierra Leone 2019
Goto Forum:
  


Current Time: Thu Mar 28 15:46:31 Coordinated Universal Time 2024