Docsity

Calculating Risk Differences, Ratios, and Odds: An Example in Biostatistics, Study notes of Mathematical Methods

Toggle sidebar
bg1
1
Applied Biostatistics
Proportions, risk ratios and odds
ratios
Martin Bland
Professor of Health Statistics
University of York
http://www-users.york.ac.uk/~mb55/
Risk difference
Cough during the day or at night at age 14 and
bronchitis before age 5
Cough at Bronchitis before age 5 Total
age 14 Yes No
Yes 26 9.5% 44 4.2% 70
No 247 90.5% 1002 95.8% 1249
Total 273 100.0% 1046 100.0% 1319
Want an estimate of the size of the bronchitis effect.
Difference between proportions:
0.095 โ€“ 0.042 = 0.053
or 9.5% โ€“ 4.2% = 5.3 percentage points.
Standard error for difference = 0.019, 95% CI:
0.053 โ€“ 1.96 ร— 0.019 to 0.053 + 1.96 ร— 0.019
= 0.016 to 0.090.
Risk difference
Cough during the day or at night at age 14 and
bronchitis before age 5
Cough at Bronchitis before age 5 Total
age 14 Yes No
Yes 26 9.5% 44 4.2% 70
No 247 90.5% 1002 95.8% 1249
Total 273 100.0% 1046 100.0% 1319
Want an estimate of the size of the bronchitis effect.
Difference between proportions:
0.095 โ€“ 0.042 = 0.053
or 9.5% โ€“ 4.2% = 5.3 percentage points.
Proportion who cough is called the risk of cough for that
population.
Difference is absolute risk difference.
pf3
pf4
pf5

Partial preview of the text

Download Calculating Risk Differences, Ratios, and Odds: An Example in Biostatistics and more Study notes Mathematical Methods in PDF only on Docsity!

Applied Biostatistics

Proportions, risk ratios and odds

ratios

Martin Bland

Professor of Health Statistics

University of York

http://www-users.york.ac.uk/~mb55/

Risk difference

Cough during the day or at night at age 14 and bronchitis before age 5 Cough at Bronchitis before age 5 Total age 14 Yes No Yes 26 9.5% 44 4.2% 70 No 247 90.5% 1002 95.8% 1249 Total 273 100.0% 1046 100.0% 1319

Want an estimate of the size of the bronchitis effect.

Difference between proportions:

or 9.5% โ€“ 4.2% = 5.3 percentage points.

Standard error for difference = 0.019, 95% CI:

0.053 โ€“ 1.96 ร— 0.019 to 0.053 + 1.96 ร— 0.

= 0.016 to 0.090.

Risk difference

Cough during the day or at night at age 14 and bronchitis before age 5 Cough at Bronchitis before age 5 Total age 14 Yes No Yes 26 9.5% 44 4.2% 70 No 247 90.5% 1002 95.8% 1249 Total 273 100.0% 1046 100.0% 1319

Want an estimate of the size of the bronchitis effect.

Difference between proportions:

or 9.5% โ€“ 4.2% = 5.3 percentage points.

Proportion who cough is called the risk of cough for that

population.

Difference is absolute risk difference.

Risk ratio

Cough during the day or at night at age 14 and bronchitis before age 5 Cough at Bronchitis before age 5 Total age 14 Yes No Yes 26 9.5% 44 4.2% 70 No 247 90.5% 1002 95.8% 1249 Total 273 100.0% 1046 100.0% 1319

Want an estimate of the size of the bronchitis effect.

Proportion who cough is called the risk of cough for that

population.

Difference is absolute risk difference.

Risk ratio = 0.095/0.042 = 2.26.

Also called relative risk , RR.

Risk ratio

Cough during the day or at night at age 14 and bronchitis before age 5 Cough at Bronchitis before age 5 Total age 14 Yes No Yes 26 9.5% 44 4.2% 70 No 247 90.5% 1002 95.8% 1249 Total 273 100.0% 1046 100.0% 1319

Risk ratio = 0.095/0.042 = 2.26.

Because risk ratio is a ratio, it has a very awkward

distribution.

If we take the log of the risk ratio, we have something which

is found by adding and subtracting log frequencies.

The distribution becomes approximately Normal.

Provided frequencies are not small, simple standard error.

Risk ratio

Cough during the day or at night at age 14 and bronchitis before age 5 Cough at Bronchitis before age 5 Total age 14 Yes No Yes 26 9.5% 44 4.2% 70 No 247 90.5% 1002 95.8% 1249 Total 273 100.0% 1046 100.0% 1319

Risk ratio = 0.095/0.042 = 2.26.

loge(RR) = 0.817.

SE for loge(RR) = 0.238.

95% CI for loge(RR)

= 0.817 โ€“ 1.96ร— 0.238 to 0.817 + 1.96 ร— 0.

= 0.351 to 3.607.

95% CI for RR = exp(0.351) to exp(1.283) = 1.42 to 3.61.

Odds ratio

Cough during the day or at night at age 14 and bronchitis before age 5 Cough at Bronchitis before age 5 Total age 14 Yes No Yes 26 9.5% 44 4.2% 70 No 247 90.5% 1002 95.8% 1249 Total 273 100.0% 1046 100.0% 1319

Odds of cough given bronchitis: 26/247 = 0.105.

Odds of cough given no bronchitis: 44/1002 = 0.044.

Odds ratio = (26/247)/(44/1002) = 0.105/0.044 = 2.397.

For every child who does not cough, 2.397 times as many will

cough with a history bronchitis as will cough with no history of

bronchitis.

Odds ratio

Cough during the day or at night at age 14 and bronchitis before age 5 Cough at Bronchitis before age 5 Total age 14 Yes No Yes 26 9.5% 44 4.2% 70 No 247 90.5% 1002 95.8% 1249 Total 273 100.0% 1046 100.0% 1319

Odds ratio, OR = (26/247)/(44/1002) = 2.397.

Like RR, OR has an awkward distribution. We use the log

odds ratio.

The distribution becomes approximately Normal.

Provided frequencies are not small, simple standard error.

Odds ratio

Cough during the day or at night at age 14 and bronchitis before age 5 Cough at Bronchitis before age 5 Total age 14 Yes No Yes 26 9.5% 44 4.2% 70 No 247 90.5% 1002 95.8% 1249 Total 273 100.0% 1046 100.0% 1319

Odds ratio, OR = (26/247)/(44/1002) = 2.397.

loge(OR) = 0.

SE loge(OR) = 0.

95% CI for loge(OR)

= 0.874 โ€“ 1.96 ร— 0.257 to 0.874 + 1.96 ร— 0.

= 0.370 to 1.379.

95% CI for OR = exp(0.370) to exp(1.379) = 1.45 to 3.97.

Odds ratio

Cough during the day or at night at age 14 and bronchitis before age 5 Cough at Bronchitis before age 5 Total age 14 Yes No Yes 26 9.5% 44 4.2% 70 No 247 90.5% 1002 95.8% 1249 Total 273 100.0% 1046 100.0% 1319

loge(OR) = 0.874, 95% CI = 0.370 to 1.379.

OR = 2.397, 95% CI = 1.45 to 3.97.

OR is not in the middle of its confidence interval.

The interval is symmetrical on the log scale, not the natural

scale.

Odds ratio

Cough during the day or at night at age 14 and bronchitis before age 5 Cough at Bronchitis before age 5 Total age 14 Yes No Yes 26 9.5% 44 4.2% 70 No 247 90.5% 1002 95.8% 1249 Total 273 100.0% 1046 100.0% 1319

Odds ratio for cough = (26/247)/(44/1002) = 2.397.

Doesnโ€™t matter which way round we do it.

Odds ratio for bronchitis =(26/44)/(247/1002) = 2.397.

Both OR = (26ร—1002)/(44ร—247) = 2.397.

Ratio of cross products.

Not true for relative risk.

Odds ratio

Cough during the day or at night at age 14 and bronchitis before age 5 Cough at Bronchitis before age 5 Total age 14 Yes No No 247 90.5% 1002 95.8% 1249 Yes 26 9.5% 44 4.2% 70 Total 273 100.0% 1046 100.0% 1319

Switching the rows or columns inverts the odds ratio.

Odds ratio for no cough given a history of bronchitis:

OR = (247/26)/(1002/44) = 0.417 = 1/2.397.

There are only two possible odds ratios.

On the log scale, equal and opposite.

loge(2.397) = 0.874, loge(0.417) = โ€“0.874.