Attributable Fractions (As11) : Course: PG Diploma/ MSC Epidemiology
Attributable Fractions (As11) : Course: PG Diploma/ MSC Epidemiology
(AS11)
EPM304 Advanced Statistical Methods in Epidemiology
This document contains a copy of the study material located within the computer
assisted learning (CAL) session.
If you have any questions regarding this document or your course, please contact
DLsupport via DLsupport@lshtm.ac.uk.
Important note: this document does not replace the CAL material found on your
module CDROM. When studying this session, please ensure you work through the
CDROM material first. This document can then be used for revision purposes to
refer back to specific sessions.
These study materials have been prepared by the London School of Hygiene & Tropical Medicine as part of
the PG Diploma/MSc Epidemiology distance learning course. This material is not licensed either for resale
or further copying.
London School of Hygiene & Tropical Medicine September 2013 v1.0
Objectives
By the end of this session you will be able to:
FE06
SM07, SM08, SM09
On the following pages we will review the attributable measures of exposure effect
and impact on a population.
Note: The attributable risk is independent of the prevalence of the exposure in the
population.
1 - 0
AFE =
-1
AFE =
PAR = T 0
Substituting for T:
PAR = p1 + (1 p) 0 0
PAR = p(1 0)
PAF =
p( - 1)
[p( - 1) + 1)]
The PAF is a valuable public health concept, since it measures the contribution of a
single exposure to the overall rate of disease in a population.
Therefore the total number of cases that would have been avoided in the subset
would be this fraction of the subset:
d p'AFE = d p' ( 1) /
So the fraction avoided in the total population is given by dividing this by the total
number of cases d:
PAF = p' ( 1) /
This formula is more easily generalised to more complex situations.
PAF =
p( - 1)
[p( - 1) + 1)]
If p' is known:
PAF =
p'( - 1)
This may be a useful indicator of the effect of exposure on the current burden
of disease, but is subject to the usual problems of interpretation of prevalent rathe
than incident cases.
If p is known:
PAF =
p( - 1)
[p( - 1) + 1)]
If p' is known:
PAF =
p'( - 1)
a
c
Unexpos
ed
b
d
m1
m0
Exposed
Cases
Control
s
Total
PAF =
p( - 1)
[p( - 1) + 1)]
Total
n1
n0
N
PAF =
p'( - 1)
P-value are:
95% CI: 1.95 to 6.03; P < 0.0001.
Cases
Controls
Total
186
574
Interaction: Hotspot: 9.9% of the cases of HIV in this study can be attributed
to recent travel to a large city:
Correct Response:
Correct
Yes, we are looking at what proportion of HIV cases were due to the exposure of
travelling to a large city. In this study, 9.9% of the cases of HIV can be attributed to
recent travel to a large city.
Interaction: Hotspot: 10% of women who recently travelled to a large city
develop HIV:
Incorrect Response:
No, it is the total proportion of cases of HIV and exposure to travelling to a large city
that we are interested in, not just the women who were exposed. The PAF tells us
that 9.9% of HIV cases in this study were attributed to recent travel.
Interaction: Hotspot: No cases of HIV in this study can be attributed to recent
travel
Incorrect Response:
No, in this example we are looking at the proportion of cases attributable to recent
travel, assuming exposure is causal. The PAF tells us that 9.9% of HIV cases in this
study were attributed to recent travel.
Error Factor]
Total
Cases
Controls
26
26
14
5
160
548
86
95
186
574
PAF = 9.9%
95% Cl = 1 [(1- PAF)
Error factor]
Error factor =
exp {1.96 x [a / (bn1) + c / (dn0)]}
Interaction: Button:
Output:
4.3%
Start with (1 PAF) = 0.901. Then multiply by the error factor to get the upper limit for (1 PAF):
Upper limit for (1 PAF) = 0.901 x 1.062 = 0.957
Then transfer back to PAF:
Lower limit for PAF = 1 0.957 = 0.043 = 4.3%
End interaction
Interaction: Calculation: Upper limit for PAF = ____:
Correct Response 15.2%:
That's right, the lower limit for (1 PAF) is 0.901 / 1.062 = 0.848, which means the
upper limit for PAF is given by:
Numbe
r of
cases
d0
d1
...
dk
...
dK
Proport
ion of
cases
p0'
p1'
...
pk'
...
pK'
RR
1
1
...
k
...
K
AF EK = ( k -1)/ k
and the population attributable fraction for exposure at level k (i.e. proportion of
cases in the population attributable to exposure at level k) is:
PAF = PAFK
= pk '(k-1)/k
You will see how this works on the following pages.
AF EK = ( k -1)/ k
The estimated AFE in the group with 2 to 4 partners is 0.531. Click here to show the
calculation of this.
Interaction: Hyperlink: show the calculation (pop up box appears and the table on
the bottom centre changes as shown below):
AFE1 = (1 1)/1
= (2.13 1) / 2.13
= 0.531
Number of
partners
0-1 (k = 0)
Cases
27 (14.8%)
2-4 (k = 1)
92 (50.3%)
Controls
173
(31.3%)
277
(50.2%)
OR
AFEk
1
2.13
0.531
5-9 (k = 2)
40 (21.9%)
10+ (k = 3)
Total
24 (13.1%)
183
Number of
partners
0-1 (k = 0)
Cases
27 (14.8%)
2-4 (k = 1)
92 (50.3%)
5-9 (k = 2)
40 (21.9%)
10+ (k = 3)
Total
24 (13.1%)
183
83
(15.0%)
19 (3.4%)
552
Controls
3.09
8.09
OR
173
(31.3%)
277
(50.2%)
83
(15.0%)
19 (3.4%)
552
AFEk
1
2.13
3.09
8.09
The estimated AFE in the group with 10+ partners is 0.876. Click here to show the
calculationof this.
Now, can you calculate the AFE for the group with 5-9 partners? Give your answer to
3 decimal places.
Interaction: Hyperlink: show the calculation (pop up box appears and the bottom
centre table changes as shown below) :
AFE3
= (3 1)/3
= (8.09 1) / 8.09
= 0.876
Number of
partners
0-1 (k = 0)
Cases
27 (14.8%)
2-4 (k = 1)
92 (50.3%)
5-9 (k = 2)
40 (21.9%)
10+ (k = 3)
Total
24 (13.1%)
183
Controls
173
(31.3%)
277
(50.2%)
83
(15.0%)
19 (3.4%)
552
OR
AFEk
1
2.13
0.531
3.09
8.09
0.876
Interaction: Calculation: Now, can you calculate the AFE for the group with 5-9
partners? Give your answer to 3 decimal places.:
Correct Response 0.676 (pop up box appears and the bottom centre table changes
as shown below:
Correct
Yes, the attributable fraction for group 2 is given by:
AFE2
= (2 1)/2
= (3.09 1) / 3.09
= 0.676
Number of
partners
0-1 (k = 0)
Cases
27 (14.8%)
2-4 (k = 1)
92 (50.3%)
5-9 (k = 2)
40 (21.9%)
10+ (k = 3)
Total
24 (13.1%)
183
Controls
OR
173
(31.3%)
277
(50.2%)
83
(15.0%)
19 (3.4%)
552
AFEk
1
2.13
0.531
3.09
0.676
8.09
0.876
Incorrect Response:
Sorry, that's not right. To calculate the attributable fraction you should use the
following formula:
AFE2 = (2 1)/2
= (3.09 1) / 3.09
= 0.676
Cases
27 (14.8%)
2-4 (k = 1)
92 (50.3%)
5-9 (k = 2)
40 (21.9%)
10+ (k = 3)
24 (13.1%)
Controls
173
(31.3%)
277
(50.2%)
83
(15.0%)
19 (3.4%)
OR
PAFk
1
2.13
0.266
3.09
8.09
Total
183
Number of
partners
0-1 (k = 0)
Cases
27 (14.8%)
2-4 (k = 1)
92 (50.3%)
5-9 (k = 2)
40 (21.9%)
10+ (k = 3)
Total
24 (13.1%)
183
552
Controls
OR
173
(31.3%)
277
(50.2%)
83
(15.0%)
19 (3.4%)
552
PAFk
1
2.13
3.09
8.09
The estimated PAF in the group with 5-9 partners is 0.148. Click here to show the
calculationof this.
Now calculate the PAF for the group with 10+ partners, giving your answer to 3
decimal places:
Interaction: Hyperlink: show the calculation (pop up box appears and the table on
bottom centre changes as shown below):
PAFE2 = p2' (2 1) / 2
= 0.219 (3.09 1) / 3.09
= 0.148
Number of
partners
0-1 (k = 0)
Cases
27 (14.8%)
2-4 (k = 1)
92 (50.3%)
5-9 (k = 2)
40 (21.9%)
10+ (k = 3)
Total
24 (13.1%)
183
Controls
173
(31.3%)
277
(50.2%)
83
(15.0%)
19 (3.4%)
552
OR
PAFk
1
2.13
0.266
3.09
0.148
8.09
Interaction: Calculation: Now calculate the PAF for the group with 10+ partners,
giving your answer to 3 decimal places::
Correct Response 0.115 (pop up box appears and bottom centre table changes as
shown below):
Correct
That's right, the PAF is given by:
PAFE3 = p3' (3 1) / 3
= 0.131 (8.09 1) / 8.09
= 0.115
Number of
partners
0-1 (k = 0)
Cases
27 (14.8%)
2-4 (k = 1)
92 (50.3%)
5-9 (k = 2)
40 (21.9%)
10+ (k = 3)
Total
24 (13.1%)
183
Controls
OR
173
(31.3%)
277
(50.2%)
83
(15.0%)
19 (3.4%)
552
PAFk
1
2.13
0.266
3.09
0.148
8.09
0.115
Incorrect Response:
Sorry, that's not right. To calculate the population attributable fraction you should
use the following formula:
PAFE3 = p3' (3 1) / 3
= 0.131 (8.09 1) / 8.09
= 0.115
PAF = PAFK
= pk '(k-1)/k
Click the 'add' button to do this.
Interaction: Button: Add (graph on centre bottom changes to the following):
Number of
partners
0-1 (k = 0)
Cases
27 (14.8%)
2-4 (k = 1)
92 (50.3%)
5-9 (k = 2)
40 (21.9%)
10+ (k = 3)
Total
24 (13.1%)
183
Controls
173
(31.3%)
277
(50.2%)
83
(15.0%)
19 (3.4%)
552
OR
PAFk
1
2.13
0.266
3.09
0.148
8.09
0.115
0.529
The overall PAF is approximately 53%. This represents the proportion of cases that
would have been avoided if the risk in all women were as low as in those reporting
no more than one lifetime partner.
Note: This analysis ignores the effects of all other factors, and is not adjusted for
confounding.
Cases
n
143
38
181
Controls
%
79
21
n
515
48
%
91
9
Odds
ratio
1.00
2.85
PAF
0.136
663
The crude OR is 2.85 with strong evidence for an association with HIV status (P <
0.001), and the unadjusted PAF is 13.6%.
Can you think of any potential confounders for the effect of marital status?
Interaction: Button: clouds picture (pop up box appears):
Marital status is closely related to age, which is also strongly associated with HIV
infection. Age therefore may be a confounding factor.
To adjust the PAF estimate for age we need to first stratify by age group.
Note: You can also adjust for age in a logistic regression model.
Cases
63
Controls
193
Total
256
10
68
198
266
Cases
53
Controls
154
Total
207
14
14
28
67
168
235
Cases
27
Controls
168
Total
195
19
29
48
46
197
243
Cases
n
143
38
Controls
%
79
21
181
n
515
48
%
91
9
Adjusted
odds ratio
1.00
3.43
663
Can you calculate the PAF, giving your answer to 3 decimal places?
PAF =
Interaction: Calculation: PAF =____:
Correct Response:
Correct
Yes, the PAF is given by
PAF
= p' ( 1) /
= 0.210 (3.43 1) / 3.43
= 0.149
So, after adjusting for age, you can say that approximately 15% of HIV cases are
attributable to being divorced or widowed.
Incorrect Response:
No, that's not correct. The PAF is calculated as follows:
PAF
= p' ( 1) /
= 0.210 (3.43 1) / 3.43
= 0.149
So, after adjusting for age, you can say that approximately 15% of HIV cases are
attributable to being divorced or widowed.
Education is in 2 groups:
Group 0: no formal
education,
Group 1: some formal
education
P > |z|
95% confidence
interval
< 0.001
2.2348
43
0.7260
01
1.7077
54
0.501
<0.001
6.0924
30
1.1692
96
3.9337
46
Yes, the odds ratio can be read from the table and it is 3.69. So, after adjusting for
age and education the odds of HIV infection for women who are widowed or divorced
is 3.69 times greater than the odds of HIV infection for married or single women.
Incorrect Response: (pop up box appears):
No, that's not right. In fact you can just read the odds ratio for the effect of marital
status from the table - it is 3.69. So, after adjusting for age and education the odds
of HIV infection for women who are widowed or divorced is 3.69 times greater than
the odds of HIV infection for married or single women.
table of results of logistic regression, the adjusted odds ratio is 2.59. Therefore,
the PAF is calculated as follows:
PAF
= p' ( 1) /
= 0.741 (2.59 1) / 2.59
= 0.455
Interaction: Button: Swap (graph on bottom centre changes to the following):
Estimates from logistic regression
Odds
Standa
z
ratio
rd
error
Msta
3.689935 0.94403
5.103
1
5
Age1
0.921363 0.11202
0.674
4
Ed1
2.591885 0.55172
4.474
0
P > |z|
< 0.001
0.501
<0.001
95% confidence
interval
2.2348
43
0.7260
01
1.7077
54
6.0924
30
1.1692
96
3.9337
46
Cases
n
49
140
Controls
%
26
74
189
263
311
46
54
574
There is a user-written program called aflogit which will calculate adjusted PAFs and
confidence intervals based on asymptotic approximations, following logistic
regression or poisson regression, using the logistic and poisson commands.
Control
Case
Total
Number of
partners
0
1
173
379
27
156
200
535
Total
552
183
735
NB: The totals are different between tables because the data used for the 'number of
partners' table contains missing values.
Interaction: Tabs: Formal Education:
Formal education
Control
Case
Total
Formal education
0
1
263
311
49
140
312
451
Total
574
189
763
P>
|z|
<
0.001
<
0.001
95% confidence
interval
1.769713 4.369988
1.664611
3.522477
Using the case frequencies and the odds ratio estimates from the logistic regression,
calculate the PAF for each exposure. Give your answers to 3 decimal places.
PAF =
No. of
partners
01
01
>1
>1
Total
Education
Cases
None
Some
None
Some
6
21
42
114
183
OR
PAF
1.00
2.78
2.42
6.73
0.073
0.135
= p' ( 1) /
= (21 / 183) (2.78 1) / 2.78
= 0.073
= p' ( 1) /
= (42 / 183) (2.42 1) / 2.42
= 0.135
Consider the table below. You can click on the highlighted PAF cells to see how each
one was calculated.
Can you calculate the missing value in the table, for women with > 1 partner and
some formal education?
Education
Cases
None
Some
None
Some
OR
6
21
42
114
183
PAF
1.00
2.78
2.42
6.73
0.073
0.135
0.530
0.738
= p' ( 1) /
= (21 / 183) (2.78 1) / 2.78
= 0.073
= p' ( 1) /
= (42 / 183) (2.42 1) / 2.42
= 0.135
You cannot simply assume that the proportion of cases not attributable to one or
more causes (for example, the 100 74.5 = 25.5% of HIV positive) are the only
ones for which other causes may play a part.
Interaction: Button: Example (pop up box appears):
This is an error frequently made with smoking and lung cancer, for which it is
incorrectly argued as, say, 90% of cases are attributable to smoking, other causes
can play a part in only 10%.
PAF = 0.546
Formal education:
PAF = 0.438
Most often this question has arisen for cancers, with respect to ionising radiation,
asbestos, and other environmental exposures.
As AFE is the proportion of cases that would be avoided if the exposure were
removed, it is a natural extension to interpret it also as the probability that a specific
exposed case was caused by that exposure.
With this interpretation, it is called the probability of causation (PC), or assigned
share of causation.
Section 9: Summary
The main points of this session will appear below as you click through the step card
opposite. Click on any of the list entries below to go back to that page.
What do AF and PAF measure?
The attributable fraction in the exposed (AFE) is the proportion of cases in the
exposed group that is due to exposure.
The population attributable fraction (PAF) estimates the proportion of cases in
the entire population that is due to exposure.
Estimating PAF in different types of studies
The PAF can be estimated in different types of epidemiological studies.
In general, you need to have estimates of:
p the proportion of the population
exposed, or
p'
the proportion of cases in the
population exposed.
and
the rate ratio (or odds ratio of exposure in a case-control study)
Adjusting for confounders
To adjust a PAF for confounding factors you use the adjusted rate ratio, and the
formula using p'.