The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Bangladesh » Missing BMI values in the DHS from 2011 (Much higher number of missing values than in the final report)
Re: Missing BMI values in the DHS from 2011 [message #22708 is a reply to message #22691] Fri, 23 April 2021 08:47
 Shireen-DHS Messages: 91Registered: August 2020 Location: USA Senior Member
Hello,

We do not have code on GitHub for glucose measurements.

To code the BMI in the PR file you can use the following CSPro code.

Best,
Shireen

preg = 0;
if SH231 = 2 then
if pidx(SH230,2) <> 0 <=> SH234 >= 50 then errmsg("Age in HH=%d Age in SH234=%d",HV105(SH230),SH234) endif;
if pidx(SH230,2) <> 0 and HA65(pidx(SH230,2)) = 1 then
if HA54(pidx(SH230,2)) = 1 then preg = 1; endif; { currently pregnant for completed interview }
else
if SH231 = 2 and SH232 = 1 then preg = 1; endif; { if woman is not eligible/incomplete interview }
endif;
endif;

{ BMI }
if SH19(SH230) <> 0 then { If weight and height measurements were in the women/men section }
if SH231 = 2 and HA13(pidx(SH230,2)) = 0 then { if woman measured }
xbmi = HA40(pidx(SH230,2));
elseif SH231 = 1 and HB13(pidx(SH230,1)) = 0 then { if man measured }
xbmi = HB40(pidx(SH230,1));
endif;
else
if SHWH = 0 then xbmi = SHBM; endif; { if weight and height measurements in Biomarkers section }
endif;

recode xbmi => nutrstat;
1200-1849 => 0; { Thin }
1850-2499 => 1; { Normal }
2500-2999 => 2; { Overweight }
3000-6000 => 3; { Obese }
=> 9;
endrecode;
if SH234C in 35:49 and SH231 = 2 and preg = 1 then nutrstat = 4; endif;

 Missing BMI values in the DHS from 2011 By: MiFoo on Fri, 16 April 2021 21:27 Re: Missing BMI values in the DHS from 2011 By: Shireen-DHS on Wed, 21 April 2021 13:24 Re: Missing BMI values in the DHS from 2011 By: MiFoo on Wed, 21 April 2021 19:01 Re: Missing BMI values in the DHS from 2011 By: Shireen-DHS on Fri, 23 April 2021 08:47 Re: Missing BMI values in the DHS from 2011 By: MiFoo on Mon, 26 April 2021 01:51 Re: Missing BMI values in the DHS from 2011 By: Shireen-DHS on Tue, 27 April 2021 08:30 Re: Missing BMI values in the DHS from 2011 By: MiFoo on Thu, 29 April 2021 11:37 Re: Missing BMI values in the DHS from 2011 By: Bridgette-DHS on Tue, 04 May 2021 09:04
 Previous Topic: District location variable Next Topic: Postnatal Care
Goto Forum:

Current Time: Thu Sep 23 20:43:47 Coordinated Universal Time 2021