The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Biomarkers » Matching the sample size
Re: Matching the sample size [message #14405 is a reply to message #14402] Tue, 03 April 2018 22:54 Go to previous messageGo to previous message
Santosh is currently offline  Santosh
Messages: 8
Registered: January 2018
Location: Tokyo, Japan
Member
Dear MR. Trevor,

Thank you for your reply. I am sorry for not mentioning the file name. I am using PR file from DHS India 2016 to estimate the prevalence of hypertension with reference to the NFHS-4 2015-16 report table 12.3.1 and 12.3.2.

I have used following codes for systolic (sbp) and diastolic (dbp) measurement:

* Systolic BP

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


//systolic reading
egen sbp= rowmean(s2 s3)
replace sbp=. if sbp>990 // Drop unknown BP
drop if sbp==.
drop if sbp<70| sbp>=300

// diastollic reading
egen dbp= rowmean(d2 d3)
replace dbp=. if dbp>299 // Drop unknown BP
drop if dbp==.
drop if dbp<=40|dbp>=170
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Data in CSV/XLSX Format
Next Topic: Biomarker data sets
Goto Forum:
  


Current Time: Thu Sep 12 10:47:52 Coordinated Universal Time 2024