Home » Topics » Biomarkers » Matching the sample size
Re: Matching the sample size [message #14402 is a reply to message #14355] |
Tue, 03 April 2018 17:52 |
Trevor-DHS
Messages: 805 Registered: January 2013
|
Senior Member |
|
|
I tried looking at your do file, but it is missing some steps. sbp and dbp do not exist.
However, I think the bigger issue is which file you are working with. The tables in the report are run based on interviewed women and men using the IR and MR files. The blood pressure readings are merged from the PR files into the IR and MR files for each eligible woman and man.
Then once you have merged the blood pressure readings into the IR and MR files, the blood pressure readings are combined to form the final result blood pressure measures for analysis, as follows:
gen sbp = .
gen dbp = .
* if the first measure is given
replace sys = SB16S if inrange(SB16S,20,299) & inrange(SB16D,20,299)
replace dia = SB16D if inrange(SB16S,20,299) & inrange(SB16D,20,299)
* if the second measure is given take it
replace sys = SB23S if inrange(SB23S,20,299) & inrange(SB23D,20,299)
replace dia = SB23D if inrange(SB23S,20,299) & inrange(SB23D,20,299)
* if the third measure is given take the last
replace sys = SB27S if inrange(SB27S,20,299) & inrange(SB27D,20,299)
replace dia = SB27D if inrange(SB27S,20,299) & inrange(SB27D,20,299)
* if all measures are given, then average the last two
replace sys = (SB23S + SB27S)/2 if inrange(SB27S,20,299) & inrange(SB27D,20,299) & inrange(SB23S,20,299) & inrange(SB23D,20,299)
replace dia = (SB27D + SB27D)/2 if inrange(SB27S,20,299) & inrange(SB27D,20,299) & inrange(SB23S,20,299) & inrange(SB23D,20,299)
I hope this helps.
[Updated on: Tue, 03 April 2018 17:52] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat Jan 11 05:42:06 Coordinated Universal Time 2025
|