Home » Topics » Biomarkers » Matching the sample size
Re: Matching the sample size [message #15414 is a reply to message #14402] |
Sat, 14 July 2018 20:14 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to previous message](/theme/default/images/down.png) |
Sami
Messages: 27 Registered: May 2016 Location: Nepal
|
Member |
|
|
Dear Trevor,
I was trying to match the India NFHS-4 2015-16 report table 12.3.1 using data file IAIR74FL.dta. However, first, i am unable to match the women sample size as shown in the report (682,651. Second, my hypertension percentage does not match to the report as (11%). I used the following code as you suggested.
use IAIR74FL, clear
gen rweight=v005/1000000
svyset v021 [pweight=rweight], strata(v023) vce(linearized) singleunit(missing)
gen sbp = .
gen dbp = .
**if all measures are given, then average the last two
replace sbp = (sb23s + sb27s)/2 if inrange(sb27s,20,299) & inrange(sb27d,20,299) & inrange(sb23s,20,299) & inrange(sb23d,20,299)
replace dbp = (sb27d + sb27d)/2 if inrange(sb27s,20,299) & inrange(sb27d,20,299) & inrange(sb23s,20,299) & inrange(sb23d,20,299)
*****drop unknown BP***
//systolic reading
drop if sbp==.
// diastollic reading
drop if dbp==.
***prehypertension**
****hypertension****
gen ht=0 if sbp!=.| dbp!=.
replace ht=1 if (sbp>=140 |dbp>=90)& (sbp!=.|dbp!=.)
svy:tab hyper, count format(%9.0f)
Can you please help me how to resolve this problem?
Many thanks
Sammy
|
|
|
Goto Forum:
Current Time: Thu Sep 12 12:08:36 Coordinated Universal Time 2024
|