The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Biomarkers » Diastolic measure for India DHS 2019-21 (Error in variable sb18d)
Re: Diastolic measure for India DHS 2019-21 [message #25139 is a reply to message #24919] Sun, 04 September 2022 07:14
 govind@iips.net Messages: 5Registered: February 2018 Location: Mumbai Member
Dear All,

Currently, I am trying to match the sample size and prevalence of hypertension in India using the person file of DHS data 2119-21. I have used the following codes but cannot match the prevalence percentage and sample size with the final report of the National Family Health Survey (NFHS) 2019-21 report (tables 12.3.1 and 12.3.2). Please help me to match the prevalence percentage and sample size. The codes are:

gen sys = .
gen dia = .
* if the first measure is given
replace sys = shb18s if inrange(shb18s,20,299) & inrange(shb18d,20,299)
replace dia = shb18d if inrange(shb18s,20,299) & inrange(shb18d,20,299)
* if the second measure is given take it
replace sys = shb25s if inrange(shb25s,20,299) & inrange(shb25d,20,299)
replace dia = shb25d if inrange(shb25s,20,299) & inrange(shb25d,20,299)
* if the third measure is given take the last
replace sys = shb29s if inrange(shb29s,20,299) & inrange(shb29d,20,299)
replace dia = shb29d if inrange(shb29s,20,299) & inrange(shb29d,20,299)
* if all measures are given, then average the last two
replace sys = (shb25s + shb29s)/2 if inrange(shb29s,20,299) & inrange(shb29d,20,299) & inrange(shb25s,20,299) & inrange(shb25d,20,299)
replace dia = (shb25d + shb29d)/2 if inrange(shb29s,20,299) & inrange(shb29d,20,299) & inrange(shb25s,20,299) & inrange(shb25d,20,299)

***********
gen ht=.
replace ht=1 if (sys>139|dia>89| shb21==1) & (sys~=. |dia~=.)
replace ht=0 if ht==. & (sys~=. |dia~=.)

Thanking you.

Govind

 Diastolic measure for India DHS 2019-21 By: rburga on Sat, 30 July 2022 18:30 Re: Diastolic measure for India DHS 2019-21 By: Bridgette-DHS on Mon, 01 August 2022 12:06 Re: Diastolic measure for India DHS 2019-21 By: Bridgette-DHS on Tue, 02 August 2022 16:02 Re: Diastolic measure for India DHS 2019-21 By: govind@iips.net on Sun, 04 September 2022 07:14 Re: Diastolic measure for India DHS 2019-21 By: Shireen-DHS on Wed, 07 September 2022 09:46 Re: Diastolic measure for India DHS 2019-21 By: govind@iips.net on Fri, 09 September 2022 04:41 Re: Diastolic measure for India DHS 2019-21 By: Shireen-DHS on Fri, 09 September 2022 08:04 Re: Diastolic measure for India DHS 2019-21 By: SKS on Fri, 21 October 2022 06:49 Re: Diastolic measure for India DHS 2019-21 By: Bridgette-DHS on Wed, 16 November 2022 09:39
 Previous Topic: Hypertension Next Topic: Additonal testing consent fields (Ha64 and HB64) blank
Goto Forum:

Current Time: Tue May 28 20:16:39 Coordinated Universal Time 2024