igrowup Macro [message #3260] |
Thu, 13 November 2014 10:46 |
rejone4@emory.edu
Messages: 8 Registered: November 2014 Location: United States
|
Member |
|
|
I'm using the igrowup Macro for Stata from the WHO for calculating BMI-z scores for children under 5 in several country surveys (Egypt, Turkey, Jordan, Armenia, Morocco and Yemen). The macro runs and I created a weightstatus variable categorized into underweight, normalweight, overweight, obese and very obese and calculated prevalence estimates. However, my numbers do not seem accurate.
I ran the macro on a more recent survey from Armenia that has the built in z scores with hw73 to compare and came out with different estimates. I have attached my macro code for Jordan 2002 which is a phase IV DHS survey. Any thoughts on where I am going wrong?
-
Attachment: Jordan.do
(Size: 2.21KB, Downloaded 1755 times)
|
|
|
Re: igrowup Macro [message #3267 is a reply to message #3260] |
Thu, 13 November 2014 19:15 |
Reduced-For(u)m
Messages: 292 Registered: March 2013
|
Senior Member |
|
|
Have you tried using age in days (expressed as a fraction of months). I believe that is the way it is usually done, but confirmation from the DHS people would be nice.
|
|
|
Re: igrowup Macro [message #3291 is a reply to message #3267] |
Tue, 18 November 2014 13:21 |
Trevor-DHS
Messages: 805 Registered: January 2013
|
Senior Member |
|
|
Yes, we do use age in days in the calculations. Try replacing "rename hw1 agemons" with the following code:
*if working with the PR file:
replace hc16 = 15 if hc16 == 98 | hc16 == 99
gen agemons = (mdy(hc18,hc17,hc19) - mdy(hc30,hc16,hc31))/30.4375
or
*if working with the KR file
replace hw16 = 15 if hw16 == 98 | hw16 == 99
gen agemons = (mdy(hw18,hw17,hw19) - mdy(b1,hw16,b2))/30.4375
|
|
|