The DHS Program User Forum - RDF feed https://userforum.dhsprogram.com/index.php Hypertension https://userforum.dhsprogram.com/index.phpindex.php?t=rview&goto=25140&th=11978#msg_25140
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@iips.net 2022-09-04T11:15:37-00:00