The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Nepal » Nutritional status of women
Re: Nutritional status of women [message #12133 is a reply to message #3917] Fri, 31 March 2017 09:48 Go to previous messageGo to previous message
UserUkbasedresearcher is currently offline  UserUkbasedresearcher
Messages: 2
Registered: March 2017
Location: London
Member
Hello,
I am using the code supplied above to get the BMI of women. It worked well in the Bangladesh 2014 DHS data. However, using it for the Tanzania 2015 data I seem to not get results matching the report. I have 11732 observations while the report (on page 249) shows 11.634 observations. I am a little tuck here. Any help would be much appreciated! I have the pasted the code again below.
Thanks,



Chris.

gen bmi=v445/100
gen bmic=1 if bmi<18.5
replace bmic=2 if bmi>=18.5 & bmi<25
replace bmic=3 if bmi>=25 & bmi<30
replace bmic=4 if bmi>=30 & bmi<50
label define bmic 1"Underweight" 2"Normal" 3"Overweight" 4"Obese"
label values bmic bmic
gen ht_flag=0
replace ht_flag=1 if v438>9000
gen preg_flag=0
replace preg_flag=1 if v213==1
gen months_since_last_birth=v008-b3_01
gen recent_birth_flag=0
replace recent_birth_flag=1 if months_since_last_birth<=1
tab bmic if ht_flag==0 & preg_flag==0 & recent_birth_flag==0 [iweight=v005/1000000]
 
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: DHS 1996, 2001, 2006 village names
Next Topic: Replicating some variables
Goto Forum:
  


Current Time: Tue Apr 23 22:47:23 Coordinated Universal Time 2024