Observed-to-expected ratio against normal approximation funnel control limits

Divides a provider's observed events by those a risk model expects for its patients, then asks whether the ratio lies outside control limits drawn around the target of 1. The first part has the form of HE-FM-ALOS-004, which computes it only for bed-days; the same form holds for event counts (derived). The limits come from treating observed events as Poisson with mean equal to the expected count, so the ratio has a standard deviation of about 1 over the square root of E_h at the target, and they narrow as the expected count rises. The limits have the algebra of the Wald interval HE-FM-AN-001 at theta_hat = 1 and SE = 1 / sqrt(E_h), and Seaton and Manktelow call them Wald limits. HE-VR-AN-001 and HE-VR-AN-002 define an estimate and its estimated standard error, whereas here the centre is the fixed target and the spread is taken at the target, so the observed ratio is tested against limits that do not move with it. A flag of 1 marks a signal worth investigating and says nothing by itself about the cause.

Signature

R_h = O_h / E_h; L_h = 1 - z / sqrt(E_h); U_h = 1 + z / sqrt(E_h); out_h = (R_h < L_h) or (R_h > U_h)
Inputs
InputsDefinitionUnit
O_hNumber of events, for example deaths, observed at provider h over the period compared, zero or morecount
E_hNumber of events expected at provider h from a reference risk model, the sum of the predicted probabilities of its patients, above zeroevents
zMultiple of the standard deviation used for the limits, commonly 2 or 3, above zerostandard deviations
Output
R_hObserved events divided by expected events, with 1 meaning events as the benchmark impliesratio
L_hLower limit for the ratio under the normal approximation, which falls below zero when E_h is below z squaredratio
U_hUpper limit for the ratio under the normal approximationratio
out_hFlag equal to 1 when the ratio lies strictly outside either limit and 0 otherwise, so a ratio equal to a limit counts as insideindicator

Function

Benchmark comparison of a provider against a reference level with control limits and payment verdicts

Maps a provider's observed and expected events, or its scored measures, to a verdict against a reference level. The observed-to-expected ratio itself takes the form of HE-FM-ALOS-004, which computes it only for bed-days; the same form holds for event counts (derived), and HE-FM-CWT-003 is the cost version, so it is not restated as its own formula. A crude rate is the first part of HE-FM-PR-001, Wilson limits for a proportion are HE-FM-BINOM-006, and frontier efficiency is the family of HE-FM-EFF-001. HE-FM-BENC-001 tests the ratio against funnel limits held around the target, which have the algebra of the Wald interval HE-FM-AN-001 at theta_hat = 1 but are not built around an estimate. HE-FM-BENC-002 widens those limits for over-dispersion. HE-FM-BENC-003 and HE-FM-BENC-004 turn comparisons into United States Medicare payment reductions, one by distance from a peer median and one by rank. Notation follows the Benchmark Comparison article.

Computational function

  • Computational function for exact Poisson and probability-based funnel limits of an observed-to-expected ratio

    Takes a provider's expected count and a tail probability and returns the two discrete alternatives to the normal approximation of HE-FM-BENC-001, which Seaton and Manktelow compare, on the ratio scale. The exact confidence limits use the link between Poisson and chi-square distributions, written here with the gamma quantile because half a chi-square variable with 2E degrees of freedom is a gamma variable of shape E (derived); this also keeps a non-integer expected count, which Excel chi-square functions would truncate. The prediction limits are the Poisson quantiles themselves, as whole counts divided by E_h. The calculator line runs Byar's approximation, which replaces the iteration, with the count D of Breslow and Day set to the expected count (derived, to serve as a funnel limit around the target); the two limits agree closely with the exact ones as the example shows. Interpolation between whole counts is not implemented; Manktelow and Seaton show that the choice of interpolation can change which providers are identified.

    Inputs and outputs: O_h is the observed count; E_h is the expected count, above zero; z is the upper standard normal percentile for the two-sided level, 3.0902 for 99.8%; K is E_h + 1; L_B and U_B are Byar's limits for the ratio; R_h is the ratio; out_B is 1 when the ratio lies outside them. In the code alpha is the two-sided tail probability, and the outputs are the exact and prediction limits for the ratio.

    Assumption: Observed events are Poisson with mean E_h for an in-control provider (HE-AS-BENC-001). Whole counts mean the stated tail probabilities are not met exactly. The calculator line needs E_h large enough for the bracket in L_B to stay above zero; at E_h of 1 and z of 3 it is negative and the line returns a small negative limit, so the code should be used (checked here).

    Worked example (Article Hospital B at 99.8%): With 180 expected and 225 observed, Byar's limits are 0.7853 and 1.2525, close to the exact 0.7854 and 1.2524, so the ratio of 1.25 falls just inside them. The prediction limits are 140 / 180 and 223 / 180, or 0.7778 and 1.2389, so the same ratio falls outside, as it does for the 3 SD limit of 1.2236. The chance of 225 or more events at a mean of 180 is about 0.0007 (computed here), so the verdict turns on the method. The figures are the article's illustrative ones. O_h = 225; E_h = 180; z = 3.0902; L_B = 0.7853; K = 181; U_B = 1.2525; R_h = 1.25; out_B = 0

    Worked example (Article Hospital A at 99.8%): With 20 expected and 28 observed, Byar's limits are 0.4461 and 1.9042, against exact limits of 0.4479 and 1.9021 and prediction limits of 0.4 and 1.75, so the ratio of 1.40 lies inside all of them. O_h = 28; E_h = 20; z = 3.0902; L_B = 0.4461; K = 21; U_B = 1.9042; R_h = 1.4; out_B = 0

    Excel: With named cells ExpectedEventsCF and TailAlpha, a cell named ExactLowerRatio holds =GAMMA.INV(TailAlpha/2,ExpectedEventsCF,1)/ExpectedEventsCF and ExactUpperRatio holds =GAMMA.INV(1-TailAlpha/2,ExpectedEventsCF+1,1)/ExpectedEventsCF. ByarUpperRatio holds =((ExpectedEventsCF+1)/ExpectedEventsCF)*(1-1/(9*(ExpectedEventsCF+1))+NORM.S.INV(1-TailAlpha/2)/(3*SQRT(ExpectedEventsCF+1)))^3. Enter the counts 0 to 2000 in A2:A2002 and name them CountColumn, enter =POISSON.DIST(A2,ExpectedEventsCF,TRUE) in B2, fill it down and name the column CumPoissonColumn. PredictionLowerRatio holds =INDEX(CountColumn,MATCH(TRUE,INDEX(CumPoissonColumn>=TailAlpha/2,0),0))/ExpectedEventsCF and PredictionUpperRatio holds =INDEX(CountColumn,MATCH(TRUE,INDEX(CumPoissonColumn>=1-TailAlpha/2,0),0))/ExpectedEventsCF. A blank or zero ExpectedEventsCF returns an error in every result cell (#NUM! or #DIV/0!). At TailAlpha 0.002 expected counts above about 1,865 need a longer count column, since the upper quantile passes 2,000 and MATCH returns #N/A, and GAMMA.INV needs Excel 2010 or later.

    R: funnel_poisson <- function(E, alpha = 0.002) { if (E <= 0) stop("E must be above zero"); list(exact = c(qgamma(alpha/2, E, 1), qgamma(1-alpha/2, E+1, 1))/E, prediction = c(qpois(alpha/2, E), qpois(1-alpha/2, E))/E) } funnel_poisson(180) gives exact limits of 0.7854 and 1.2524 and prediction limits of 0.7778 and 1.2389, and E of zero or below stops with the message.

    Python: from scipy.stats import gamma, poisson then def funnel_poisson(E, alpha=0.002): return (gamma.ppf(alpha/2, E)/E, gamma.ppf(1-alpha/2, E+1)/E, poisson.ppf(alpha/2, E)/E, poisson.ppf(1-alpha/2, E)/E) funnel_poisson(10, 0.05) returns 0.4795, 1.8390, 0.4 and 1.7. E of zero returns nan or inf with a runtime warning and a negative E returns nan (checked here), so the caller should reject both first.

    Test (Exact upper limit at 20 expected): With ExpectedEventsCF 20 and TailAlpha 0.002, ExactUpperRatio holds 1.9021 within 0.0005. Expected result TRUE. FALSE shows a shape of E in place of E + 1, which gives 1.8350, and a doubled (3.8042) or halved (0.9511) cell. Excel check =ABS(ExactUpperRatio-1.9021)<0.0005

    Test (Seaton and Manktelow's mean of 10): With ExpectedEventsCF 10 and TailAlpha 0.05, the prediction limits are the counts 4 and 17 over 10, since the probability of more than 16 events is 0.027 and of more than 17 events is 0.014, as they report. Expected result TRUE. FALSE shows a count of 16 in place of 17, and a doubled (3.4) or halved (0.85) upper cell. Excel check =AND(ABS(PredictionUpperRatio-1.7)<0.000001,ABS(PredictionLowerRatio-0.4)<0.000001)

    Test (Byar against exact at 180 expected): With ExpectedEventsCF 180 and TailAlpha 0.002 the two upper limits, 1.2524 and 1.2525, differ by less than 0.005. Expected result TRUE. FALSE shows a doubled (2.5048) or halved (0.6262) ExactUpperRatio, or ExactUpperRatio written with 1-TailAlpha in place of 1-TailAlpha/2, which gives 1.2342. A wrong value typed into TailAlpha moves both cells and leaves this test TRUE, so the test at 20 expected guards that. Excel check =ABS(ExactUpperRatio-ByarUpperRatio)<0.005

    Common error (Truncated degrees of freedom): CHISQ.INV truncates a non-integer degrees of freedom, so for E_h of 20.25, where 2E is 40.5, it uses 40. GAMMA.INV takes the shape directly and avoids this.

    Common error (Treating the methods as interchangeable): At 180 expected and 99.8%, a ratio of 1.25 is outside the 3 SD and prediction limits and inside the exact confidence limits. Seaton and Manktelow conclude that funnel limits for the SMR should not be based on confidence intervals, so the method is stated before the data are seen.

    Source: Seaton SE, Manktelow BN. The probability of being identified as an outlier with commonly used funnel plot control limits for the standardised mortality ratio. BMC Medical Research Methodology. 2012;12:98. Methods, sections Confidence intervals and Prediction intervals, for the chi-square exact limits and the integer prediction limits. Manktelow BN, Seaton SE. Specifying the probability characteristics of funnel plot control limits: an investigation of three approaches. PLoS One. 2012;7(9):e45723. Methods, on interpolation. Breslow NE, Day NE. Statistical Methods in Cancer Research. Volume II, The Design and Analysis of Cohort Studies. IARC Scientific Publications No. 82. Lyon: International Agency for Research on Cancer; 1986. Chapter 2, section (e) Confidence intervals for the SMR, equation 2.13, page 69, for Byar's limits on the count. Public Health England. Technical Guide: Funnel Plots. Version 13 December 2017. Appendix A, section Ratios, on the exact Poisson limit used in its tool.

    R_h = O_h / E_h; L_B = (1 - 1 / (9 * E_h) - z / (3 * sqrt(E_h)))^3; K = E_h + 1; U_B = (K / E_h) * (1 - 1 / (9 * K) + z / (3 * sqrt(K)))^3; out_B = (R_h < L_B) or (R_h > U_B)

Try this function

Implementations

  • Excel

    Funnel verdict from named observed and expected cells

    With inputs in cells named ObservedEvents, ExpectedEvents and ZCritical, the four formulas return ObservedExpectedRatio, FunnelLowerLimit, FunnelUpperLimit and OutsideFunnel, in that order. A blank ExpectedEvents cell counts as 0 and the formulas return #DIV/0!. A blank ObservedEvents cell counts as 0 and returns a ratio of 0.

    =ObservedEvents/ExpectedEvents; =1-ZCritical/SQRT(ExpectedEvents); =1+ZCritical/SQRT(ExpectedEvents); =OR(ObservedExpectedRatio<FunnelLowerLimit,ObservedExpectedRatio>FunnelUpperLimit)

Assumptions

  • Observed events Poisson with mean equal to the expected count

    An in-control provider's observed events are treated as Poisson with mean E_h, as Seaton and Manktelow assume, and E_h is treated as known. Uncertainty in the risk model behind E_h is ignored, so limits are too narrow where that model is itself uncertain (derived from the same assumption).

  • Observed and expected events cover the same patients and benchmark

    O_h and E_h come from one set of patients, one period and one risk model built on the reference population, so the target of 1 is the reference level. A different reference level, such as a best-practice ratio, needs a different target. Differences between providers in coding can move E_h, as the article sets out, and no limit corrects that.

  • Expected count large enough for the normal approximation

    Seaton and Manktelow report that Wald limits miss their nominal probabilities most at small expected counts and approach them as the count rises. HE-CF-BENC-001 gives exact and probability-based limits for small counts. The lower limit is negative when E_h is below z squared (derived), for example E_h below 9 at z of 3.

Worked examples

  • Article Hospital B outside the 3 SD funnel

    In the article's illustrative national comparison, Hospital B has 225 deaths against 180 expected, a ratio of 1.25, above its upper limit of about 1.22, with an excess of 45 deaths.

    O_h = 225; E_h = 180; z = 3; R_h = 1.25; L_h = 0.7764; U_h = 1.2236; out_h = 1
  • Article Hospital A inside the 3 SD funnel despite the worst ratio

    Hospital A has the worst ratio in the article's illustrative table, 28 deaths against 20 expected, or 1.40, yet its small expected count gives limits of about 0.33 and 1.67, so the excess of 8 deaths lies within chance.

    O_h = 28; E_h = 20; z = 3; R_h = 1.4; L_h = 0.3292; U_h = 1.6708; out_h = 0
  • Article Hospital D exactly on target

    Hospital D has as many deaths as expected, so the ratio is 1 and the limits are 0.70 and 1.30, a limiting case that checks an implementation. The inputs are the article's illustrative ones.

    O_h = 100; E_h = 100; z = 3; R_h = 1; L_h = 0.7; U_h = 1.3; out_h = 0

Common errors

  • Taking 3 SD funnel limits as exactly 99.8% limits

    Seaton and Manktelow say 95% and 99.8% limits roughly equate to 2 and 3 standard deviations. Under a normal distribution 3 standard deviations leave 0.27% outside, against 0.2% at z of 3.09 (derived). For Hospital B the upper limit moves only from 1.2236 to 1.2303, but stating the wrong level misdescribes the false alarm rate.

  • Centring the limits on the provider's own ratio

    An interval around the estimate is HE-FM-AN-001 and answers a different question. For Hospital B the standard deviation of the observed count gives 15 / 180 = 0.0833, so 3 standard deviations around 1.25 reach down to 1.00 and only touch the target, while the funnel around the target has the same hospital clearly outside at 1.2236.

  • Reading the worst ratio as the worst performer

    In the article's table Hospital A has the highest ratio, 1.40, but lies inside its limits, while Hospital B at 1.25 lies outside. A penalty on the worst ranked hospital hits A alone, and a penalty on signals outside the funnel hits B alone.

  • Using Wald limits at small expected counts without checking the tail

    For expected events up to 50 Seaton and Manktelow report a median probability of 0.0301 that an in-control provider falls above the upper 95% Wald limit, against the nominal 0.025, and a maximum of 0.0133 against the nominal 0.001 for 99.8% limits. Small providers therefore raise more upper alarms than the stated level implies.

Sources

  • Seaton and Manktelow on three funnel limit methods for the SMR

    Seaton SE, Manktelow BN. The probability of being identified as an outlier with commonly used funnel plot control limits for the standardised mortality ratio. BMC Medical Research Methodology. 2012;12:98. Background defines the SMR as observed over expected events with a target of one and observed events Poisson. Methods, section Confidence intervals, prints the Wald limits on the count scale with lambda the expected events, and Table 1 gives the probabilities quoted here. Dividing by the expected count gives the ratio form of the formula (derived).

    View source →

  • Spiegelhalter on funnel plots for institutional comparisons

    Spiegelhalter DJ. Funnel plots for comparing institutional performance. Statistics in Medicine. 2005;24(8):1185-1202. Abstract, which recommends funnel plots as a graphical aid for institutional comparisons, with an estimate plotted against a measure of its precision and control limits forming a funnel around the target outcome, in close analogy to Shewhart control charts, and which concludes that they avoid spurious ranking into league tables.

    View source →

  • Public Health England guide on funnel plot limits and chance

    Public Health England. Technical Guide: Funnel Plots. Version 13 December 2017. Section Interpretation states that 2 of every 1,000 observations are likely to lie outside the 3 standard deviation funnel and 5 of every 100 outside the 2 standard deviation funnel. Section Statistical Methods applies exact Poisson probabilities to indirectly standardised ratios.

    View source →

Canonical Identity

This formula is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).

Author: Dr Darrin Baines · Publisher: Intelligent Parameters Ltd · Identifier: https://healtheconomics.wiki/formula/observed-to-expected-ratio-against-normal-approximation-funnel-control-limits