Flag under the Evans minimum criteria for a signal from report counts

Returns 1 when a drug and event pair has at least 3 reports of the event, a proportional reporting ratio of at least 2 from HE-FM-AER2-001 and a chi-squared value of at least 4 from HE-FM-AER2-002, the minimum criteria that Evans and colleagues used on the UK Yellow Card database, and returns 0 otherwise. All three parts must hold. The count guards against ratios built on one or two reports, the ratio sets a size for the gap in shares, and the statistic takes account of the number of reports behind it. A flag marks a pair for medical assessment and establishes neither a reaction nor a rate. The form of the statistic used is reported with the flag, since HE-FM-AER2-002 gives two.

Signature

S = (a >= 3) and (PRR >= 2) and (X2 >= 4)
Inputs
InputsDefinitionUnit
aNumber of reports of the event of interest for the drug, the a of HE-FM-AER2-001reports
PRRProportional reporting ratio of the pair from HE-FM-AER2-001ratio, zero or above
X2Chi-squared statistic of the pair's table from HE-FM-AER2-002none
Output
S1 when all three minimum criteria hold and 0 otherwiseflag

Function

Disproportionate reporting screen of one drug and event pair in a spontaneous report database

Maps the four report counts of a two-by-two table for one drug and one event to the proportional reporting ratio, a chi-squared statistic on the same table and a flag under the minimum criteria of Evans and colleagues. The ratio has the form of HE-FM-PR-001, whose counts are people in a cross-sectional sample, while these counts are reports with no count of the patients exposed, so the output shows where to look and gives no probability of harm. Event probabilities, costs and QALY losses for a model stay with HE-FN-AER-001 and need a source with a known denominator. The naive reporting rate in the article has the form P = n / N of HE-FM-AER-001, and its correction by a reporting fraction takes the form of HE-FM-CRV-001 with a equal to the rate, Sp equal to 1 and Se equal to the fraction (derived), so neither is restated. Notation follows the Adverse Event Reporting article.

Computational function

  • Computational function: screening drug and event pairs for disproportionate reporting from report counts

    Screens a list of drug and event pairs for disproportionate reporting. For each pair it takes the four report counts, computes the ratio of HE-FM-AER2-001 and the uncorrected statistic of HE-FM-AER2-002, and applies the flag of HE-FM-AER2-003, so a reviewer sees which pairs to read first. The inputs are the raw counts of the table, where HE-FM-AER2-003 takes the finished ratio and statistic. The Math / Code line runs one pair, and the Excel, R and Python versions run any number of pairs.

    Inputs and outputs: a, b, c, d are the report counts of one pair (HE-FM-AER2-001), and in R they may be vectors of equal length. P_d, P_o and PRR are the two shares and the ratio; N and E_a to E_d are the total and the expected counts; X2 is the uncorrected statistic; S is the flag, 1 or 0. R returns a data frame with one row per pair, and Python returns the tuple of ratio, statistic and flag for one pair.

    Assumption: The conditions of HE-FM-AER2-001 to HE-FM-AER2-003 hold for each pair, and every pair uses the same database, period and counting unit. When c is 0, or a + b is 0, the ratio is returned as missing (NA in R, None in Python, #N/A in Excel); when any margin is 0 the statistic is also missing; and in either case the flag is 0. This is a choice of these records and differs from the 99.9 that EMA 2008 footnote 2 records for EudraVigilance when C is 0. Such a pair is listed for reading and not treated as cleared.

    Worked example (EMA Example 2 counts): All three criteria hold, so the pair is flagged. a = 15; b = 85; c = 5000; d = 95000; PRR = 3; X2 = 20.99; S = 1

    Worked example (EMA Table 3 counts): The ratio of 0.79 and the statistic of 0.1625 reproduce the printed table, and the flag is 0. a = 3; b = 2427; c = 251; d = 160736; PRR = 0.79; X2 = 0.1625; S = 0

    Worked example (Four pairs in the R and Python code): prr_screen(c(15, 2, 3, 150), c(85, 48, 37, 850), c(5000, 1000, 3000, 10000), c(95000, 99000, 97000, 90000)) returns flags 1, 0, 0 and 0, with ratios 3, 4, 2.5 and 1.5 and statistics of about 20.99, 4.54, 2.78 and 27.38. This example is for reading against the R and Python code; its calculator form is HE-EX-AER2-008 to HE-EX-AER2-011.

    Excel: With one pair per row and the counts in columns A to D from row 2, enter =IF(OR(C2=0,A2+B2=0),NA(),(A2/(A2+B2))/(C2/(C2+D2))) in E2, =IF(MIN(A2+B2,C2+D2,A2+C2,B2+D2)=0,NA(),(A2+B2+C2+D2)*(A2*D2-B2*C2)^2/((A2+B2)*(C2+D2)*(A2+C2)*(B2+D2))) in F2 and =IF(OR(ISNA(E2),ISNA(F2)),0,IF(AND(A2>=3,E2>=2,F2>=4),1,0)) in G2, and fill down. Name columns E, F and G ScreenRatioColumn, ScreenChiColumn and ScreenFlagColumn. Column F uses the cross-product form of the statistic, which equals the cell sum (derived, 0 mismatches on a grid of 6,561 tables). Blank counts are treated as 0.

    R: prr_screen <- function(a, b, c, d) { n <- a+b+c+d; ea <- (a+b)*(a+c)/n; eb <- (a+b)*(b+d)/n; ec <- (c+d)*(a+c)/n; ed <- (c+d)*(b+d)/n; prr <- ifelse(c > 0 & a+b > 0, (a/(a+b))/(c/(c+d)), NA); x2 <- ifelse(ea > 0 & eb > 0 & ec > 0 & ed > 0, (a-ea)^2/ea+(b-eb)^2/eb+(c-ec)^2/ec+(d-ed)^2/ed, NA); flag <- ifelse(is.na(prr) | is.na(x2), 0, as.numeric(a >= 3 & prr >= 2 & x2 >= 4)); data.frame(a, b, c, d, prr, x2, flag) } The function works on vectors, and a missing ratio or statistic gives a flag of 0.

    Python: def prr_screen(a, b, c, d): n = a+b+c+d; m = [(a+b)*(a+c), (a+b)*(b+d), (c+d)*(a+c), (c+d)*(b+d)]; prr = (a/(a+b))/(c/(c+d)) if c > 0 and a+b > 0 else None; x2 = sum((o-e/n)**2/(e/n) for o, e in zip((a, b, c, d), m)) if min(m) > 0 else None; flag = int(prr is not None and x2 is not None and a >= 3 and prr >= 2 and x2 >= 4); return prr, x2, flag Plain Python with no imports, for one pair at a time; prr_screen(0, 0, 0, 0) returns None, None and 0 without an error.

    Test (Four pairs flagged as expected): With the four pairs of the third worked example in rows 2 to 5, the flags are 1, 0, 0 and 0 and the weighted sum is 1. Expected result TRUE. A column G that drops the count test returns 3 and FALSE, one that drops the chi-squared test returns 5 and FALSE, and one that drops the ratio test returns 9 and FALSE. Doubling the first flag gives 2 and halving it gives 0.5, both FALSE. Excel check =SUMPRODUCT(ScreenFlagColumn,{1;2;4;8})=1

    Test (First pair statistic and ratio against hand values): The first row returns a ratio of 3 and a statistic of about 20.99. Expected result TRUE. A column F holding the Yates form returns about 18.94 and FALSE, and doubling the statistic to about 41.98 or halving it to about 10.50 gives FALSE, as does doubling the ratio to 6 or halving it to 1.5. Excel check =AND(ABS(INDEX(ScreenRatioColumn,1)-3)<0.0005,ABS(INDEX(ScreenChiColumn,1)-20.99)<0.005)

    Common error (Sorting the screen by chi-squared alone): The statistic grows with the counts, so sorting on it puts well-reported pairs with modest ratios first. In the four pairs above the highest statistic, about 27.38, belongs to the pair with the lowest ratio, 1.5, which the flag rejects. EMA 2008 section 4.6 treats these statistics as one of many elements for prioritising pairs.

    Source: Evans SJ, Waller PC, Davis S. Use of proportional reporting ratios (PRRs) for signal generation from spontaneous adverse drug reaction reports. Pharmacoepidemiology and Drug Safety. 2001;10(6):483-486. Abstract, for the minimum criteria. European Medicines Agency. Guideline on the use of statistical signal detection methods in the EudraVigilance data analysis system. Doc. Ref. EMEA/106464/2006 rev. 1. London; 26 June 2008. Sections 4.2, 4.4 and 4.6, footnote 2 and Table 3, for the table, the statistic, the thresholds, the case C equal to 0 and the printed values.

    P_d = a / (a + b); P_o = c / (c + d); PRR = P_d / P_o; N = a + b + c + d; E_a = (a + b) * (a + c) / N; E_b = (a + b) * (b + d) / N; E_c = (c + d) * (a + c) / N; E_d = (c + d) * (b + d) / N; X2 = (a - E_a)^2 / E_a + (b - E_b)^2 / E_b + (c - E_c)^2 / E_c + (d - E_d)^2 / E_d; S = (a >= 3) and (PRR >= 2) and (X2 >= 4)

Try this function

Implementations

  • Excel

    Evans minimum criteria flag from three named cells

    With the report count in SignalReportCount, the ratio in SignalRatio and the statistic in SignalChiSquared, the formula returns 1 or 0 in a cell named SignalFlag. A blank input counts as 0 in the comparison and returns 0. A #N/A or #DIV/0! input from HE-IM-AER2-001 or HE-IM-AER2-002 carries through to SignalFlag.

    =IF(AND(SignalReportCount>=3,SignalRatio>=2,SignalChiSquared>=4),1,0)

Assumptions

  • Evans thresholds are empirical and a value at a threshold passes

    The thresholds are the minimum criteria stated in the Evans et al. abstract, 3 or more cases, PRR at least 2 and chi-squared of at least 4, so a value equal to a threshold passes. EMA 2008 section 4.6 says there is no gold standard for universal thresholds and that those used in EudraVigilance are empirical, and its criteria b) in sections 4.6 and 5.2.4 are also PRR at least 2 and chi-square at least 4, with at least 3 individual cases.

  • All three inputs to the flag come from one report table

    a, PRR and X2 are computed from the same table for the same pair, database and period. The one exception is the boundary check of HE-EX-AER2-012 and HE-VT-AER2-008, whose typed values test the rule itself. A count from one extract with a ratio from another does not describe any one table.

  • A flag prompts assessment and its absence clears nothing

    EMA 2008 section 4.5 says signals of disproportionate reporting identified with quantitative methods should always be medically assessed, and that the absence of one does not necessarily exclude an association between the product and the event.

Worked examples

  • EMA example pair meets all three Evans criteria

    The counts of EMA 2008 Example 2 give 15 reports, a ratio of 3 and an uncorrected statistic of about 20.99 (HE-EX-AER2-005), so all three criteria hold and the flag is 1. EMA prints no flag for this example; it is computed here.

    a = 15; PRR = 3; X2 = 20.99; S = 1
  • Illustrative pair with too few reports for the Evans criteria

    An illustrative table with 2, 48, 1,000 and 99,000 reports has a ratio of 4 and an uncorrected statistic of about 4.54, but only 2 reports of the event, so the flag is 0.

    a = 2; PRR = 4; X2 = 4.54; S = 0
  • Illustrative pair below the Evans chi-squared criterion

    An illustrative table with 3, 37, 3,000 and 97,000 reports has 3 reports and a ratio of 2.5, but an uncorrected statistic of about 2.78, so the flag is 0.

    a = 3; PRR = 2.5; X2 = 2.78; S = 0
  • Illustrative pair below the Evans ratio criterion

    An illustrative table with 150, 850, 10,000 and 90,000 reports has an uncorrected statistic of about 27.38 but a ratio of 1.5, so the flag is 0. A large count can give a high statistic for a modest gap in shares.

    a = 150; PRR = 1.5; X2 = 27.38; S = 0
  • Illustrative pair exactly at every Evans threshold

    Values of exactly 3, 2 and 4 pass, because each criterion reads at least, so the flag is 1. The values are illustrative and test the boundary of the rule directly; they are not computed from one table.

    a = 3; PRR = 2; X2 = 4; S = 1

Common errors

  • Dropping the report count from the Evans criteria

    A pair with 2 reports can pass the other two tests. The illustrative table with 2, 48, 1,000 and 99,000 reports has a ratio of 4 and an uncorrected statistic of about 4.54, so a rule without the count would flag it on that form. EMA 2008 section 4.6 calls the PRR a very sensitive method that may generate a high number of false positive signals, particularly when the number of reports is low.

  • Treating a flag under the Evans criteria as a new reaction

    A flag is a prompt for evaluation. Of the 481 signals Evans and colleagues found for 15 newly marketed drugs, 70% were known adverse reactions, 13% were likely to be related to the underlying disease and 17% required further evaluation. A count of flags is therefore neither a count of new hazards nor an input for an event probability in a model.

  • Using strict thresholds in place of at least

    Evans and colleagues state at least for the ratio and the statistic, and EMA 2008 criteria b) use the same rule. Section 4.6 of that guideline prints the sign as an underlined greater-than sign, which text extracted from the PDF shows as a bare greater-than sign, and section 5.2.4 prints the sign for greater than or equal to. An illustrative table with 20, 80, 10,000 and 90,000 reports has a ratio of exactly 2 and an uncorrected statistic of about 11.09, so it is flagged under at least and not under a strict rule (derived). A comparison of flag counts between systems states which rule each applies.

Sources

  • Evans and colleagues on minimum criteria and the evaluation of signals

    Evans SJ, Waller PC, Davis S. Use of proportional reporting ratios (PRRs) for signal generation from spontaneous adverse drug reaction reports. Pharmacoepidemiology and Drug Safety. 2001;10(6):483-486. Abstract, Methods, which gives as minimum criteria for a signal 3 or more cases, PRR at least 2 and chi-squared of at least 4, and Findings, which report 15 newly marketed drugs, 481 signals in 1996 to 1998, and 70% known adverse reactions, 13% likely to be related to the underlying disease and 17% requiring further evaluation.

    View source →

  • EMA 2008 on thresholds and the assessment of signals of disproportionate reporting

    European Medicines Agency. Guideline on the use of statistical signal detection methods in the EudraVigilance data analysis system. Doc. Ref. EMEA/106464/2006 rev. 1. London; 26 June 2008. Section 4.6, on no gold standard, empirical thresholds, sensitivity at low report numbers, and criteria b) of PRR at least 2, chi-square at least 4 and at least 3 individual cases, printed there with an underlined greater-than sign, citing Evans et al.; section 5.2.4, which restates criteria b) with the sign for greater than or equal to; section 4.5 (a) and (f), on medical assessment and on the absence of a signal.

    View source →

Canonical Identity

Stable URI · Machine-readable · Resolvable · CC BY 4.0

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/flag-under-the-evans-minimum-criteria-for-a-signal-from-report-counts

Flag under the Evans minimum criteria for a signal from report counts | HealthEconomics.wiki