Re: matching sample size and prevalence of hypertension in India DHS 2015-16 [message #14237 is a reply to message #14209] |
Thu, 08 March 2018 08:23 |
anjalibansal6693
Messages: 24 Registered: February 2018
|
Member |
|
|
You can try this i think you will able to match with the report
gen s1=shb16s
replace s1=. if s1>299
gen s2=shb23s
replace s2=. if s2>990
gen s3=shb27s
replace s3=. if s3>990
gen d1=shb16d
replace d1=. if d1>297
gen d2=shb23d
replace d2=. if d2>299
gen d3=shb27d
replace d3=. if d3>299
gen systolic=int((s2+s3)/2)
gen diastolic=int((d2+d3)/2)
gen hyper=.
replace hyper=1 if (systolic>139|diastolic>89| shb19==1) & (systolic~=. |diastolic~=.)
replace hyper=0 if hyper==. & (systolic~=. |diastolic~=.)
|
|
|