Meta-Analysis in Stata: History, Progress and Prospects
Meta-Analysis in Stata: History, Progress and Prospects
Jonathan Sterne
Department of Social Medicine
University of Bristol, UK
Outline
• Systematic reviews and meta-analysis
• Meta-analysis in Stata
• Bias in meta-analysis
• Stata commands to investigate bias
• Present situation
• The Future……
Systematic reviews
• Systematic approach to minimize biases and random
errors
• Always includes materials and methods section
• May include meta-analysis
Huque 1988
Streptokinase (thrombolytic therapy)
• Simple idea if we can dissolve the blood clot causing
acute myocardial infarction then we can save lives
• However – possible serious side effects
• First trial - 1959
Pub Streptokinase group Control group
Trial Trial name year Deaths Total Deaths Total
1 Fletcher 1959 1 12 4 11
2 Dewar 1963 4 21 7 21
3 1st European 1969 20 83 15 84
4 Heikinheimo 1971 22 219 17 207
5 Italian 1971 19 164 18 157
6 2nd European 1971 69 373 94 357
7 2nd Frankfurt 1973 13 102 29 104
8 1st Australian 1973 26 264 32 253
9 NHLBI SMIT 1974 7 53 3 54
10 Valere 1975 11 49 9 42
11 Frank 1975 6 55 6 53
12 UK Collaborative 1976 48 302 52 293
13 Klein 1976 4 14 1 9
14 Austrian 1977 37 352 65 376
15 Lasierra 1977 1 13 3 11
16 N German 1977 63 249 51 234
17 Witchitz 1977 5 32 5 26
18 2nd Australian 1977 25 112 31 118
19 3rd European 1977 25 156 50 159
20 ISAM 1986 54 859 63 882
21 GISSI-1 1986 628 5860 758 5852
22 ISIS-2 1988 791 8592 1029 8595
Risk ratio
Study (95% CI)
Fletcher 0.23 (0.03,1.75)
Dewar 0.57 (0.20,1.66)
1st European 1.35 (0.74,2.45)
Heikinheimo 1.22 (0.67,2.24)
Italian 1.01 (0.55,1.85)
2nd European 0.70 (0.53,0.92)
2nd Frankfurt 0.46 (0.25,0.83)
1st Australian 0.78 (0.48,1.27)
NHLBI SMIT 2.38 (0.65,8.71)
Valere 1.05 (0.48,2.28)
Frank 0.96 (0.33,2.80)
UK Collab 0.90 (0.63,1.28)
Klein 2.57 (0.34,19.5)
Austrian 0.61 (0.42,0.89)
Lasierra 0.28 (0.03,2.34)
N German 1.16 (0.84,1.60)
Witchitz 0.81 (0.26,2.51)
2nd Australian 0.85 (0.54,1.34)
3rd European 0.51 (0.33,0.78)
ISAM 0.88 (0.62,1.25)
GISSI-1 0.83 (0.75,0.91)
ISIS-2 0.77 (0.70,0.84)
0.1 1 10
Risk ratio
Archie Cochrane (1979)
∑w i
Σ
i =1
w i
0.1 1 10
Risk ratio
Forest plots
• Boxes draw attention to the studies with the greatest
weight
• Box area is proportional to the weight for the
individual study
• The diamond (and broken vertical line) represents the
overall summary estimate, with confidence interval
given by its width
• Unbroken vertical line is at the null value (1)
Random-effects meta-analysis (1)
• We suppose the true treatment effect in each study is
randomly, normally distributed between studies, with
variance τ2 (“tau-squared”)
• Estimate the between-study variance τ2, and use this to
modify the weights used to calculate the summary
estimate.
• The usual estimate of τ2 is called the DerSimonian and
Laird estimate.
Random-effects meta-analysis (2)
k
Σ i log OR i
w*
i=1
Random-effects estimate: log ORR = k
Σw
i=1
*
i
* 1
where w =i 2
vi +τˆ
1
k
The variance of the random-effects summary OR is:
Σw
i=1
*
i
Back to 1996….
• Bill Clinton always in the news….
• In the UK, Labour look unbeatable….
• England’s stars crash out of the European football
championship….
• JS gets his first laptop
Stata 5 (1996)
• A revolutionary advance, based on the Windows
environment!
• Host of new facilities, including……
• A new graphics programming command (gph)
The meta command
(Sharp and Sterne)
• Inverse-variance weighted fixed- and random-effects
meta-analysis
• Forest plots, programmed using the gph command
• Published in the Stata Technical Bulletin, in 1997
• Syntax: meta logor selogor, options…
Meta-analysis (exponential form)
| Pooled 95% CI Asymptotic No. of
Method| Est Lower Upper z_value p_value studies
Fixed | 0.774 0.725 0.826 -7.711 0.000 22
Random| 0.782 0.693 0.884 -3.942 0.000
Fletcher
Dewar
1st European
Heikinheimo
Italian
2nd European
2nd Frankfurt
1st Australian
NHLBI SMIT
Valere
Frank
UK Collab
Klein
Austrian
Lasierra
N German
Witchitz
2nd Australian
3rd European
ISAM
GISSI-1
ISIS-2
Combined
.01 .1 1 10
Odds ratio
Thrombolytic therapy
(streptokinase) in acute
myocardial infarction:
Cumulative meta-analysis
Oxford Textbook of
Medicine 1987
“the clinical value of
thrombolysis … remains
uncertain”
The metacum command (Sterne 1998)
metacum logor selogor, effect(f) graph
id(trialnam) eform xlab(0.01,0.1,1,10)
cline xline(1) b2title(Odds ratio)
Fletcher
Dewar
1st European
Heikinheimo
Italian
2nd European
2nd Frankfurt
1st Australian
NHLBI SMIT
Valere
Frank
UK Collab
Klein
Austrian
Lasierra
N German
Witchitz
2nd Australian
3rd European
ISAM
GISSI-1
ISIS-2
.01 .1 1 10
Odds ratio
Meanwhile, in Oxford…..
• Mike Bradburn, Jon Deeks and Douglas Altman actually
knew something about meta-analysis…
• The Cochrane Collaboration was about to release a new
version of its Review manager software, and some
checking algorithms were needed
• Mike Bradburn presented a version of his meta command
at the 1997 UK Stata Users’ group
.01 .1 1 10 100
Odds ratio
This week I went through the mails I've received: there’s
approximately 200 in the six years I've kept. The users have grown;
this year I have had 27 people write, some more than once (that’s >1 a
week). The typical mail either asks whether metan can do something
or how to use it to analyse data. Early requests tended to be basic
"where's the xtick option?" but others have required more time. There
were a few bugs too, and so the feedback has helped make metan far
better than it was in 1998. People have tended to be appreciative too -
one mail this year thanked me for writing it, nothing else.
Supporting it is difficult at times: as I work for a cancer charity quite a
lot of their time has gone into this. Maybe I shouldn't feel uneasy about
that (most requests were from academia), but I do. In my new job I will
likely not have the opportunity, save in my own time, to continue this.
Given that Stata has gained publicity and users on the back of these
routines, it would probably be for the better that Stata’s 1998(?) claim
that "Stata should have a meta-analysis command [...] but does not"
were carried into practice.
Meta-regression
– used to examine associations between study
characteristics and treatment effects
– e.g. difference in treatment effect estimates comparing studies
that were and were not double-blind
– Berkey et al. Statistics in Medicine 1995;14:395-411,
Thompson & Sharp, Statistics in Medicine 1999;18:2693-708
– Observational analyses!!
Symmetrical
Standard Error
1 Funnel Plot
3
0.1 0.3 0.6 1 3 10
Odds ratio
Reporting bias present
0
Asymmetrical
Standard Error
1 Funnel Plot
3
0.1 0.3 0.6 1 3 10
Odds ratio
Funnel plots from Egger & Davey Smith (BMJ 1995)
metabias (Steichen 1997)
metabias logor selogor, gr(begg)
2
Log odds ratio
-2
-4
0 .5 1 1.5 2
s.e. of: Log odds ratio
metan d1 h1 d0 h0, or
funnel
31.6035
1/se(logOR)
.601941
.090038 1.25
OR (log scale)
Choice of axis in funnel plots
30
0
Standard error
Precision
20
1
10
2 0
-4 -2 0 2 4 -4 -2 0 2 4
100000 60000
10000
Sample size
Sample size
40000
1000
20000
100
10 0
-4 -2 0 2 4 -4 -2 0 2 4
Log odds ratio Log odds ratio
Journal of Clinical Epidemiology 2001; 54: 1046-1055
metafunnel (Sterne & Harbord 2004)
metafunnel logor selogor, eform xlab(0.1 1 10)
0 .5 Funnel plot with pseudo 95% confidence limits
S.E. of log odds ratio
1.5 21
.1 1 10
exp(Log odds ratio), log scale
Selection models for publication bias
– detect publication bias, based on assuming that a study’s
results (e.g. the P value) affect its probability of publication
– Example: assume publication is certain if the study P<0.05. If
P>0.05 then publication probability might be a constant (<1)
or might decrease with decreasing treatment effect
– More complex models have been proposed, but may require
much larger numbers of studies than available in typical meta-
analyses
– The complexity of the methods, and the large number of
studies needed, probably explain why selection models have
not been widely used in practice
Trim and fill
(Duval & Tweedie 1999, 2000)
2
.1 .2 .33 .5 1 2 3 5 10
Odds ratio
Egger's test
Std_Eff| Coef Std Err t P>|t| 95% Conf Int
slope| -.15122 .167460 -0.90 0.383 -.51300 .21055
bias| -1.1924 .375174 -3.18 0.007 -2.0029 -.38191
Other Stata meta-analysis commands
search meta
15,000
10,000
Price
5,000
0
10 20 30 40
Mileage (mpg)
The future
1. Update graphical displays to Stata 8
• new talent is replacing tired old programmers bewildered by
Stata 8 graphics
2. Unify existing commands into one or more official Stata
commands
• where these are stable and uncontroversial
3. New areas/commands
meta8 logor selogor, id(trialnam) eform
graph(f) xlab(0.01 0.1 1 10)
Morton
Rasmussen
Smith
Abraham
Feldstedt
Schechter
Ceremuzynski
Bertschat
Singh
Pereira
Schechter 1
Golf
Thogersen
LIMIT-2
Schechter 2
ISIS-4
Combined
.01 .1 1 10
Odds ratio
1990s
Singh 0.50 ( 0.17, 1.43) 0.5
Pereira 0.11 ( 0.01, 0.97) 0.3
Schechter 1 0.13 ( 0.03, 0.60) 0.6
Golf 0.43 ( 0.13, 1.44) 0.4
Thogersen 0.45 ( 0.13, 1.54) 0.4
LIMIT-2 0.74 ( 0.56, 0.99) 5.0
Schechter 2 0.21 ( 0.07, 0.64) 0.8
ISIS-4 1.06 ( 1.00, 1.13) 89.7
Subtotal 1.02 ( 0.96, 1.08) 97.6
.011009 1 90.8316
Odds ratio
New developments
• Meta-analysis of diagnostic tests
– Major area of expansion for the Cochrane Collaboration
– Statistically, much more complex than meta-analysis of
randomised controlled trials
– First command (meta_lr) recently released by Aijing Shang
– Formal synthesis of these studies requires bivariate methods
accounting for the association between sensitivity and
specificity (meta-analyse in ROC-space)
– Obvious extensions to existing ROC methods in Stata
– Opportunities to use gllamm and new mixed models
procedures to be released in Stata 9?
• As always, developments will occur in areas that no-one
predicts…
Thanks to…
• Stephen Sharp
• Matthias Egger
• Tom Steichen
• Mike Bradburn
• Roger Harbord
• Aijing Shang