funnel plot for institutional comparison: the funnelcompar ... · pdf filefunnel plot for...

39
Funnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot for institutional comparison: the funnelcompar command Silvia Forni Rosa Gini [email protected] [email protected] Agenzia regionale di sanit` a della Toscana September 10, 2009

Upload: lyngoc

Post on 19-Mar-2018

220 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Funnel plot for institutional comparison:the funnelcompar command

Silvia Forni Rosa [email protected]@arsanita.toscana.it

Agenzia regionale di sanitadella Toscana

September 10, 2009

Page 2: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

1 Funnel plot for institutional comparison

2 Some statisticsUnderlying testExact vs approximated control limits

3 The funnelcompar command

4 Some examples

Page 3: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

1 Funnel plot for institutional comparison

2 Some statisticsUnderlying testExact vs approximated control limits

3 The funnelcompar command

4 Some examples

Page 4: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Background

Page 5: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Background

I Quantitative indicators are increasingly used to monitorhealth care providers

I Interpretation of those indicators is often open to anyone(patients, journalists, politicians, civil servants and managers)

I It is crucial that indicators are both accurate and presented ina way that does not result in unfair criticism or unjustifiedpraise

Page 6: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Classical presentation: league tables

I Imply the existence of rankingbetween institutions

I Implicitly support the idea thatsome of them areworse/better than other

Page 7: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Statistical Process Control methods: key principles

I Variation, to be expected in any process or system, can bedevided into:

I Common cause variation: expected in a stable processI Special cause variation: unexpected, due to systematic

deviation

I Limits between these two categories can be set using SPCmethods

I Funnel plots:I All institutions are part of a single system and perform at the

same levelI Observed differences can never be completely eliminated and

are explained by chance (common cause variation).I If observed variation exceed that expected, special-cause

variation exists and requires further explanation to identify itscause.

Page 8: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Funnel Plot

0

10

20

30

indi

cato

r (p

er c

ent)

100 150 200 250 300 350sample size

Units Sign. 5% Sign. .2%

I Scatterplot of observedindicators against a measure ofits precision, tipically the samplesize

I Horizontal line at a targetlevel, typically the group avarage

I Control Limits at 95%(≈ 2SD) and 99.8% (≈ 3SD)levels, that narrow as thesample size gets bigger

Association of Public Health Observatories in UK developedanalytical tools in excell for producing funnel plot

Page 9: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Underlying testExact vs approximated control limits

1 Funnel plot for institutional comparison

2 Some statisticsUnderlying testExact vs approximated control limits

3 The funnelcompar command

4 Some examples

Page 10: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Underlying testExact vs approximated control limits

A funnel plot has four components:

I An indicator Y .

I A target θ which specifies the desired expectaion forinstitutions considered “in control”.

I A precision parameter N determining the accuracy with wichthe indicator is being measured. Select a N directlyinterpretable, eg the denominator for rates and means.

I Control limits for a p-value, computed assuming Y has aknown distributon (normal, binomial, Poisson) withparameters (θ, σ).

Page 11: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Underlying testExact vs approximated control limits

From a purely statistical point of view, funnel plot is a graphicalrepresentation testing whether each value Yi belongs to the knowndistribution with given parameters.

The formal test of significance:

H0 : Yi = θ

H1 : Yi 6= θ

Z =Yi − θ

(σ�√

N)

test failed 99.8%: alarm

test satisfied: in control

test failed 95%: alert

0

20

40

60

80

100

0 20 40 60 80 100

Units Sign. 5% Sign. .2%

Page 12: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Underlying testExact vs approximated control limits

Control limits

In cases of discrete distributions there are two possibilies fordrawing control limits as functions of N

I a normal approximation:

yp(N) = θ ± zpσ√N

I an “exact” formula

yp(N) =r(p,N,θ) − α

N

where r(p,N,θ) and α are defined in the following slides

Page 13: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Underlying testExact vs approximated control limits

Binomial

In the case of binomial distribution:

I r(p,N,θ) is the inverse to the cumulative binomial distributionwith parameters (θ, N) at level p. The definition Spiegelhalterrefers to is as follows:1 if F(θ,N) is the cumulative distributionfunction, ie F(θ,N)(k) is the the probability of observing k orfewer successes in N trials when the probability of a successon one trial is θ,2 then rp = r(p,N,θ) is the smallest integersuch that

P(R ≤ rp) = F(θ,N)(rp) > p

I α is a continuity adjustment coefficient

α =F(θ,N)(rp)− p

F(θ,N)(rp − 1)− p

1Beware that the Stata function invbinomial() is not defined this way.2The Stata function binomial(N,k,θ) computes F(θ,N)(k).

Page 14: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Underlying testExact vs approximated control limits

Poisson

In the case of Poisson distribution:

I r(p,N,θ) is the inverse to the cumulative Poisson distributionwith parameter M = θN at level p. The definitionSpiegelhalter refers to is as follows:3 if FM is the cumulativedistribution function, ie FM(k) is the probability of observingk or or fewer outcomes that are distributed Poisson with meanM,4 then rp = r(p,N,θ) is the smallest integer such that

P(R ≤ rp) = FM(rp) > p

I α is a continuity adjustment coefficient

α =FM(rp)− p

FM(rp − 1)− p

3Beware that the Stata function invpoisson() is not defined this way.4The Stata function poisson(M,k) computes FM(k).

Page 15: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Underlying testExact vs approximated control limits

Example 1: binomial, θ=1%0

.02

.04

.06

.08

.1

0 50 100 150x

Approximated Exact

From invbinomom2(), probability .01

I Does it makesense to testa 1% of caseswithN < 100?

I For N > 100the two pairsof curvesalmostcoincide

Page 16: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Underlying testExact vs approximated control limits

Example 2: binomial, θ=20%0

.1.2

.3.4

.5

0 50 100 150x

Approximated Exact

From invbinomom2(), probability .2

I For N < 100very similarcurves,approximatedupper boundsconservative

I For N > 100the two pairsof curvesalmostcoincide

Page 17: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Underlying testExact vs approximated control limits

Example 3: binomial, θ=50%0

.2.4

.6.8

1

0 50 100 150x

Approximated Exact

From invbinomom2(), probability .5

I For N < 100very similarcurves,approximatedupper boundsconservative

I For N > 100the two pairsof curvesalmostcoincide

Page 18: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Underlying testExact vs approximated control limits

Example 4: Poisson, θ=1%0

.02

.04

.06

.08

.1

0 50 100 150x

Approximated Exact

From invpoisson2(), rate .01

I Does it makesense to testa 1% of caseswithN < 100?

I For N > 100the two pairsof curvesalmostcoincide

Page 19: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Underlying testExact vs approximated control limits

Example 5: Poisson, θ=50%0

.2.4

.6.8

1

0 50 100 150x

Approximated Exact

From invpoisson2(), rate .5

The two pairs ofcurves almostcoincide

Page 20: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Underlying testExact vs approximated control limits

Example 6: Poisson, θ=1 (SMR)0

.51

1.5

2

0 50 100 150x

Approximated Exact

From invpoisson2(), rate 1

The two pairs ofcurves visiblycoincide

Page 21: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Underlying testExact vs approximated control limits

Conclusion for using exact vs approximated test

I Whenever the sample size is more than 100, the approximatedtest is almost superimposed to the exact test

I Consider if it makes sense to use exact test

Page 22: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

1 Funnel plot for institutional comparison

2 Some statisticsUnderlying testExact vs approximated control limits

3 The funnelcompar command

4 Some examples

Page 23: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Basic syntax

funnelcompar value pop unit [sdvalue],[continuous/binomial/poisson][ext stand() ext sd() noweight smr ][constant()][contours() exact]

marking options

other options

Page 24: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Variables

funnelcompar value pop unit [sdvalue]

I value contains the values of the indicator.

I pop contains the sample size (precision parameter)

I unit contains an identifier of the units

I sdvalue contains the standard deviations of indicators(optionally, if the continuous option is also specified)

Page 25: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Distribution

Users must specify a distribution among:

I normal: option cont

I binomial: option binom

I Poisson: option poiss

Page 26: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Parameters: θ

θ can be obtained as:

I weighted mean of value with weights pop (default)

I non weighted mean of value if the noweight option isspecified

I external value specified by users with the option ext stand()

Page 27: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Parameters: σ

I Binomial distribution: σ =√

θ(1− θ)

I Poisson distribution: σ =√

θ

I Normal distribution:I weighted mean of sdvalue with weights pop (defualt)I non weighted mean of sdvalue if the noweight option is

specifiedI external value specified by users with the option ext sd()

Page 28: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

The smr option

I smr option can be specified only with poisson option:

I value are assumed to be indirectly standardised rates

I pop contains the expected number of events

I θ is assumed to be 1

Page 29: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Constant

I The constant() option specifies whether the values of theindicators are multiplied by a constant term, for instanceconstant(100) must be specifies if the values arepercentages.

Page 30: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Curves

I contours(): specifies significance levels at which controllimits are set (as a percentage).

I Default contours() are set at 5% and .2% levels, that is aconfidence of 95% and 99.8% respectively.

I For example if contours(5) is specified only the curvecorresponding to a test with 5% of significance is drawn.

I For discrete distributions if the exact option is specified, theexact contours are drawn. As a default the normalapproximation is used.

Page 31: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

1 Funnel plot for institutional comparison

2 Some statisticsUnderlying testExact vs approximated control limits

3 The funnelcompar command

4 Some examples

Page 32: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Percentages, internal target, units out-of-control marked

36

106513

538 550

568

4068

368371

5400

10

20

30

indi

cato

r (p

er c

ent)

100 150 200 250 300 350sample size

Units Sign. 5% Sign. .2%

funnelcomparmeasure pop unit,binom const(100)markup marklow

Page 33: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Percentages, no-weighted internal target

0

10

20

30

indi

cato

r (p

er c

ent)

100 150 200 250 300 350sample size

Units Sign. 5% Sign. .2%

funnelcomparmeasure pop unit,binom const(100)noweight

Page 34: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Rates, external target, type-A units marked

0

10

20

30

40

indi

cato

r (p

er 1

,000

)

500 1000 1500 2000 2500 3000sample size

Units "Type A" Sign. 5% Sign. .2%

funnelcompar measure popunit, poissonconst(1000) ext stand(15)markcond(type = 1)legendmarkcond(Type A)colormarkcond(blue)optionsmarkcond(msymbol(S))twowayopts(yline(23,lcolor(green)) )

Page 35: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Means, internal target, unit type marked

−20

0

20

40

60

indi

cato

r

0 20 40 60sample size

Units "Type A" "Type B" "Type C" Sign. 5% Sign. .2%

funnelcompar measure popunit sd, cont const(1)markcond(type=1)legendmarkcond(Type A)colormarkcond(blue)optionsmarkcond(msymbol(S))markcond1(type = 2)...markcond2(type=3) ...

Page 36: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Standardized Incidence Rates, one unit marked

your unit

0

1

2

3

4

5

indi

cato

r

2 4 6 8 10 12expected events

Units Sign. 5% Sign. .2%

funnelcompar smr expunit, poisson smrmarkunit(5 "your unit")legendopts(placement(se)row(1))

Page 37: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

References

Spiegelhalter DJFunnel plots for comparing institutional performance.Statist. Med. 2005: 24:1185-1202.

Spiegelhalter DJFunnel plots for institutional comparison.Qual Saf Health Care 2002 Dec;11(4):390-1.

Spiegelhalter DJHandling over-dispersion of performance indicators.Qual Saf Health Care 2005 Oct;14(5):347-51.

Julian FlowersStatistical process control method in public health intelligence.APHO Technical Briefing, Dec 2007 Issue 2.

Page 38: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Acknowledgements

I We thank Neil Shephard and Paul Silcocks for valuablediscussion.

I Our routine is heavily based on confunnel by Tom Palmer.

I Many programming tricks were stolen from eclplot andother routines by Roger Newson.

Page 39: Funnel plot for institutional comparison: the funnelcompar ... · PDF fileFunnel plot for institutional comparison Some statistics The funnelcompar command Some examples Funnel plot

Funnel plot for institutional comparisonSome statistics

The funnelcompar commandSome examples

Thanks for your attention!