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 |
Janet-DHS
Messages: 893 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.
|
|
|
|
|
Slight difference in the Senegal Stunting, Wasting, Underweight prevalence
By: tundexZ on Tue, 03 May 2022 09:27
|
|
|
Re: Slight difference in the Senegal Stunting, Wasting, Underweight prevalence
|
|
|
Re: Slight difference in the Senegal Stunting, Wasting, Underweight prevalence
By: tundexZ on Sat, 07 May 2022 12:11
|
|
|
Re: Slight difference in the Senegal Stunting, Wasting, Underweight prevalence
|
Goto Forum:
Current Time: Mon Dec 2 04:50:34 Coordinated Universal Time 2024
|