Functions & Formulae

Each applied formula has its own function page, with a signature, implementations, and tests.

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

s(a, b, c, d) = (PRR, X2, X2_Y, S)

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.

  • Proportional reporting ratio from the four report counts of one drug and event pair

    P_d = a / (a + b); P_o = c / (c + d); PRR = P_d / P_o

    Divides the share of the drug's reports that name the event of interest by the same share among the reports for all other drugs, using a two-by-two table of report counts with drugs in rows and events in columns. A value of 1 means the event takes the same share of reports for the drug as for the other drugs, and a value above 1 means a larger share. The arithmetic has the form of HE-FM-PR-001, but every cell here counts reports, so b is the other reports for the drug and not people free of the event, and no cell counts the patients exposed. Because P_d cannot exceed 1, the ratio cannot exceed 1 / P_o (derived). The ratio compares shares of reports, so it shows where to look and does not measure risk.

  • Chi-squared statistic of a two-by-two report table with expected counts from its margins

    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; Y = max(0, abs(a - E_a) - 0.5); X2_Y = Y^2 / E_a + Y^2 / E_b + Y^2 / E_c + Y^2 / E_d

    Compares each observed report count with the count expected if drug and event were independent, taken from the table as row total times column total over the grand total, and adds the squared gaps scaled by the expected counts. The summation has the form of HE-FM-CHISQ-007, whose E_j are model predictions for calibration targets (HE-VR-CHISQ-022), while E here comes from the margins of the table. The table has one degree of freedom (derived), which links the statistic to HE-FM-CHISQ-005. X2_Y is the Yates-corrected form, which takes 0.5 off the absolute gap in each cell, floored at zero; the absolute gap is the same in all four cells, so one Y serves them all. Both forms appear in published accounts of the signal criteria, so a reported value names the form used.

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

    S = (a >= 3) and (PRR >= 2) and (X2 >= 4)

    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.

This set of formulae 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/concept/adverse-event-reporting/formulae