Bioepi Lesson 7. Measures of Association
Bioepi Lesson 7. Measures of Association
Bioepi Lesson 7. Measures of Association
Risk ratio p1 / p0
Categorical
Population p1/p0
1 1 1 1 log eRR
risk ratio s.e.(lo ge − + −
± 1.96 × s.e.(loeRg
RR )
d 1 n 1 d 0 n0
= R)
π1-π0 π1-π0=0
p1 − p0
Categorical z=
s.e.( p 1
− p
0
)
Categorical Population
risk p1-p0 -0.175, -0.015 0.020
difference = -0.095
=0
Categorical
Population p1/p0 0.62, 0.96 0.016
risk ratio = 0.77
=1
Odds ratio for exposure to dexamethasone = (d 1/d0) / (h1/h0) = 0.777 / 1.176 = 0.66
Odds ratio for not dying = (h 1/d1) / (h0/d0) = 2.149 / 1.420 = 1.51 = (1/0.66)
Odds ratio for exposure to placebo = (d 0/d1) / (h0/h1) = 1.287 / 0.850 = 1.51 = (1/0.66)
Measure of association
× × √
Controlling for confounding:
stratification and regression
• A description of confounding
Confounding variable
Confounding variables
Cigarette smoking
Control of confounding
Design of Study
• Randomisation
(randomised controlled trial: e.g. TBM trial)
• Restriction
(only include those with one value of
confounder)
• Matching
Control of confounding
Statistical analysis
• Stratification
• Regression modelling
Hypothetical example of a case-control study
Association between energy intake and heart disease
Heart disease
Energy intake Yes No Total
Confounding variables
Physical activity
Stratify by physical activity…..
For high physical activity group: For low physical activity group:
OR (95% CI) = 1.47 (1.11, 1.95) OR (95% CI) = 1.66 (1.26, 2.19)
Is this association confounded
by physical activity?
???
??? ???
Confounding variables
Physical activity
Confounding – condition 1
Association between physical activity and heart disease
For high energy intake group: For low energy intake group:
OR (95% CI) = 0.38 (0.29, 0.50) OR (95% CI) = 0.43 (0.33, 0.58)
** Look particularly in those who are not exposed to the factor of interest**
Confounding – condition 2
Physical activity
Energy intake High Low Total
Proportion in high energy intake group who report high physical activity =
510/600 = 0.85 (85%)
Proportion in low energy intake group who report high physical activity =
150/540 = 0.28 (28%)
Confounding variables
Physical activity
So physical activity is a potential confounder
Control for confounding - Stratified analyses
1) Start with stratum specific estimates of odds ratios, risk ratios, risk
differences, rate ratios
OR = 1.47 OR = 1.66
w= (d0×h1)/n = w= (d0×h1)/n =
(100×510)/1260) = 40.5 (600×90)/1310) = 41.2
Calculate a pooled OR
OR = 1.47 OR = 1.66
w= (d0×h1)/n = w= (d0×h1)/n =
(100×510)/1260) = 40.5 (600×90)/1310) = 41.2
ORMH = ∑ (w × OR )
i i
∑ wi
Stratum ‘i’
Calculate a pooled OR
For high physical activity: For low physical activity:
OR = 1.47 OR = 1.66
w= (d0×h1)/n = w= (d0×h1)/n =
(100×510)/1260) = 40.5 (600×90)/1310) = 41.2
Confounding variables
Physical activity
Multiple logistic regression
Outcome variable (y-variable) – binary
e.g. dead or alive; treatment failure or success;
disease or no disease..
β1 – loge(odds ratios)
X1 – energy intake (high versus low)
End