Signature
Delta_B = p_Bc - p_Bd; Delta_R = p_Rd - p_Rc; IRBR = Delta_R / Delta_B; NCB = mu * Delta_B - Delta_R
| Inputs | Definition | Unit |
|---|---|---|
p_Bc | Risk of the event the drug is meant to avert, in the comparator arm | probability over the follow-up |
p_Bd | Risk of the event the drug is meant to avert, in the drug arm | probability over the follow-up |
p_Rd | Risk of the harm event in the drug arm | probability over the follow-up |
p_Rc | Risk of the harm event in the comparator arm | probability over the follow-up |
mu | Number of harm events accepted to avert one event, zero or above, set by the decision maker | harm events per event averted |
Delta_B | p_Bc less p_Bd, the fall in the risk of the averted event with the drug | probability difference over the follow-up |
|---|---|---|
Delta_R | p_Rd less p_Rc, the rise in the risk of the harm event with the drug | probability difference over the follow-up |
IRBR | Delta_R divided by Delta_B, read as the extra harm events per event averted when both differences are positive, undefined when Delta_B is 0 | harm events per event averted |
NCB | mu times Delta_B less Delta_R, positive when the value of the benefit exceeds the risk | harm events per patient over the follow-up |
Function
Quantitative benefit-risk balance function on one health unit or at a harm acceptance threshold
Maps the favourable and unfavourable effects of a drug and its comparison in one unit to the incremental net health benefit, and the risks of an averted event and a harm event with a harm acceptance threshold to the incremental risk-benefit ratio and the net clinical benefit. HE-FM-BRA-001 and HE-FM-BRA-002 hold these two forms, and HE-CF-BRA-001 runs the second over simulation draws to give the risk-benefit acceptability curve. The article's other steps are live records and are cited here in place of a restatement. The number needed to treat and the number needed to harm are the reciprocals in HE-FM-ARR-003 of the absolute differences of HE-FM-ARR-001, whose negative value is an absolute risk increase, read in absolute value as HE-AS-ARR-005 states. The linear value score, the additive weighted value and the tie weight are HE-FM-MCDH-001, HE-FM-MCDH-002 (the article's two criteria are its three with p_3 = 0) and HE-CF-MCDH-001. An arm's expected QALY loss from adverse events is HE-FM-AER-006, the ICER is HE-FM-ICER-001, and the threshold-based net health benefit of a cost is HE-FM-CET-002. The forms are linked. With the QALY loss per harm event q_R and mu set to the QALY loss per averted event divided by q_R, INHB equals q_R times NCB (derived), and when two linear value scales give the same k points per unit of risk, the lead of one option over the other on V of HE-FM-MCDH-002 equals the harm weight times k times NCB at mu equal to the benefit weight divided by the harm weight (derived). Notation follows the Benefit-Risk Assessment article, with FE and UFE as in the EMA Work package 2 report and mu as in Lynd and O'Brien.
Computational function
Computational function for the risk-benefit acceptability curve from simulated benefit and risk pairs
Takes simulated pairs of incremental benefit and incremental risk and returns the share of runs that are net beneficial at a threshold mu, one point on the risk-benefit acceptability curve of Lynd and O'Brien, who draw the arm probabilities from beta distributions. Scanning mu traces the curve. Each run applies HE-FM-BRA-002. The count has the form of HE-FM-CEAC-001, which that record computes only for money, here with harm events in place of cost and mu in place of lambda (derived), and the beta parameters from event counts are HE-FM-BETA-002. The calculator line runs four typed draws, illustrative values and not a simulation output, and the Excel, R and Python code draw from the event counts. At mu = 0 the share is that of runs with Delta_R below 0, and as mu grows it approaches the share of runs with Delta_B above 0, plus any run with Delta_B exactly 0 and Delta_R below 0, which counts at every mu (derived).
Inputs and outputs:
muis the harm events accepted per event averted;dB_1todB_4are the incremental benefit anddR_1todR_4the incremental risk in four runs;NCB_1toNCB_4are the net clinical benefits of the runs andRBACis the share with a value above 0.Assumption: As in HE-AS-BRA-004, HE-AS-BRA-005 and HE-AS-BRA-006, with a run at NCB = 0 not counted. The draws in a run hold the joint uncertainty of the two differences, and four runs are too few for any purpose except checking an implementation. The code draws each arm probability independently with a uniform prior, alpha_0 = beta_0 = 1 in HE-FM-BETA-002, a choice made here that the caller can change.
Worked example (typed draws at mu = 4):
mu = 4; dB_1 = 0.020; dR_1 = 0.015; dB_2 = 0.028; dR_2 = 0.006; dB_3 = 0.012; dR_3 = 0.021; dB_4 = -0.004; dR_4 = -0.002; NCB_1 = 0.065; NCB_2 = 0.106; NCB_3 = 0.027; NCB_4 = -0.014; RBAC = 0.75. Illustrative draws. Atmu = 1the same draws giveNCB_1 = 0.005; NCB_2 = 0.022; NCB_3 = -0.009; NCB_4 = -0.002; RBAC = 0.5.Excel: With the draws in equal-length columns named DeltaBenefitDraws and DeltaRiskDraws and the threshold in HarmsAcceptedAtPoint, enter
=SUMPRODUCT(--(HarmsAcceptedAtPoint*DeltaBenefitDraws-DeltaRiskDraws>0))/COUNT(DeltaBenefitDraws)in AcceptabilityShare. To draw an arm probability, type a fixed table of uniform values and use the classic function, for example=BETAINV(UniformValue,1+EventCount,1+ArmSize-EventCount)in each row, never RAND(), so that the sheet stays deterministic. A blank in either column counts as 0 in the subtraction while COUNT skips a blank in DeltaBenefitDraws, so the columns need no gaps.R:
rbac <- function(rBc, rBd, rRd, rRc, nc, nd, mus, runs = 3000, seed = 1, a0 = 1, b0 = 1) { set.seed(seed); dB <- rbeta(runs, a0+rBc, b0+nc-rBc)-rbeta(runs, a0+rBd, b0+nd-rBd); dR <- rbeta(runs, a0+rRd, b0+nd-rRd)-rbeta(runs, a0+rRc, b0+nc-rRc); sapply(mus, function(m) mean(m*dB-dR > 0)) }With illustrative arms of 1,000 patients and the article's percentages,rbac(40, 20, 30, 15, 1000, 1000, c(0, 0.75, 1, 4, 7.5))returns 0.0113, 0.4953, 0.6840, 0.9793 and 0.9927 under R 4.6.1. With no events anda0 = 0, b0 = 0the draws are all 0 and the share is 0 with no error. An empty vector of thresholds returns an empty list, andruns = 0returns NaN.Python:
import randomthendef rbac(rBc, rBd, rRd, rRc, nc, nd, mus, runs=3000, seed=1, a0=1, b0=1): rng = random.Random(seed); draw = lambda r, n: rng.betavariate(a0+r, b0+n-r); d = [(draw(rBc, nc)-draw(rBd, nd), draw(rRd, nd)-draw(rRc, nc)) for _ in range(runs)]; return {m: sum(m*b-r > 0 for b, r in d)/runs for m in mus}The same call with a list of thresholds returns 0.0117, 0.4990, 0.6803, 0.9823 and 0.9897 under Python 3.14, different from R because the generators differ. An empty list returns an empty dictionary, and no events witha0=0, b0=0raises ValueError, because a beta parameter must be above 0, andruns=0raises ZeroDivisionError.Test (typed draws at mu = 4): AcceptabilityShare is compared with the hand value 0.75. Expected result TRUE. FALSE shows a count built on IRBR below mu, which gives 1 because the fourth run has a ratio of 0.5, and doubling the cell to 1.5 or halving it to 0.375 also gives FALSE. Excel check
=ABS(AcceptabilityShare-0.75)<0.001Test (limit at mu = 0): With HarmsAcceptedAtPoint at 0 and the same draws, AcceptabilityShare is compared with the share of runs with negative incremental risk, 0.25. Expected result TRUE. Doubling the cell to 0.5 or halving it to 0.125 gives FALSE, and a count of runs with positive incremental risk returns 0.75 and FALSE. Excel check
=ABS(AcceptabilityShare-COUNTIF(DeltaRiskDraws,"<0")/COUNT(DeltaRiskDraws))<0.001Common error (ratio counted in place of net benefit): Counting runs with IRBR below mu counts a run with both differences negative as a success. On the typed draws it returns 1 in place of 0.75 at mu = 4, and 0.75 in place of 0.5 at mu = 1 (derived).
Source: Lynd LD, O'Brien BJ. Journal of Clinical Epidemiology. 2004;57(8):795-803, doi:10.1016/j.jclinepi.2003.12.012, abstract, for the simulation with beta distributions and the curve over thresholds mu. Lazo-Langner A, Rodger MA, Barrowman NJ, Ramsay T, Wells PS, Coyle DA. BMC Medical Research Methodology. 2012;12:3, Methods sections Estimation of uncertainty, joint risk-benefit and risk-benefit analysis and Calculation of the net clinical benefit and indirect comparison of multiple treatment options, for the percentage of replications below a range of threshold values and equation 5.
NCB_1 = mu * dB_1 - dR_1; NCB_2 = mu * dB_2 - dR_2; NCB_3 = mu * dB_3 - dR_3; NCB_4 = mu * dB_4 - dR_4; RBAC = ((NCB_1 > 0) + (NCB_2 > 0) + (NCB_3 > 0) + (NCB_4 > 0)) / 4
Try this function
Implementations
Excel
Excel incremental risk-benefit ratio and net clinical benefit
With the risks in cells named AvertedEventRiskComparator, AvertedEventRiskDrug, HarmEventRiskDrug and HarmEventRiskComparator as proportions and the threshold in HarmsAcceptedPerEvent, the four formulas return IncrementalBenefit, IncrementalRisk, RiskBenefitRatio and NetClinicalBenefit. RiskBenefitRatio returns #N/A when IncrementalBenefit is 0, and NetClinicalBenefit still returns a number. A blank risk counts as 0 and returns a number with no warning.
=AvertedEventRiskComparator-AvertedEventRiskDrug; =HarmEventRiskDrug-HarmEventRiskComparator; =IF(IncrementalBenefit=0,NA(),IncrementalRisk/IncrementalBenefit); =HarmsAcceptedPerEvent*IncrementalBenefit-IncrementalRisk
Assumptions
Two options with one averted event and one harm event
The formula compares a drug with one comparator on a single benefit event and a single harm event over the same follow-up, the case EMA Work package 2 section 3.1.2 says the Lynd and O'Brien study dealt with. Further effects call for HE-FM-BRA-001 on a common unit or for a multi-criteria model such as HE-FM-MCDH-002.
Ratio verdict holds only with a positive incremental benefit
Lazo-Langner and colleagues rearrange IRBR below the threshold into NCB above zero. The two verdicts agree when Delta_B is above 0. With Delta_B below 0 the division reverses the inequality, so the two verdicts are opposite at every mu except a tie, where neither holds, and at Delta_B = 0 IRBR is undefined while NCB still returns a value (derived). The same authors call an option dominant if it gives more benefit with less risk and dominated if it gives less benefit with more risk, so the threshold decides the case with more of both.
Threshold is a stated judgement and ties are not net beneficial
The threshold mu is a judgement about willingness to accept risk and is given to the formula, not estimated by it. Lynd and O'Brien vary it to accommodate different risk preferences. Equation 2 of Lazo-Langner and colleagues is a strict inequality, so NCB = 0 is not counted as net beneficial, the tie rule of the two-option count in HE-FM-CEAC-001.
Worked examples
Illustrative anticoagulant at four bleeds accepted per stroke averted
The article's illustrative risks, stroke 4.0% with control and 2.0% with the drug, major bleeding 1.5% and 3.0%, at the four bleeds per stroke that the article's panel weights imply. The drug causes 0.75 extra bleeds per stroke averted and NCB is 0.065, or 65 bleed equivalents per 1,000 patients.
p_Bc = 0.04; p_Bd = 0.02; p_Rd = 0.03; p_Rc = 0.015; mu = 4; Delta_B = 0.02; Delta_R = 0.015; IRBR = 0.75; NCB = 0.065
Illustrative anticoagulant at the QALY ratio of the two events
The same risks at mu = 7.5, the article's 1.5 QALYs per stroke divided by 0.2 QALYs per bleed. NCB is 0.135 bleed equivalents per patient, and multiplying by the 0.2 QALYs per bleed gives 0.027 QALYs per patient, the 27 per 1,000 of HE-EX-BRA-001 (derived).
p_Bc = 0.04; p_Bd = 0.02; p_Rd = 0.03; p_Rc = 0.015; mu = 7.5; Delta_B = 0.02; Delta_R = 0.015; IRBR = 0.75; NCB = 0.135
Limiting case with the threshold equal to the risk-benefit ratio
The same risks at mu = 0.75, where the threshold equals IRBR and NCB is zero. One bleed then counts as 1.33 strokes, the reversal point in step 5 of the article, which is the reciprocal of 0.75 (derived).
p_Bc = 0.04; p_Bd = 0.02; p_Rd = 0.03; p_Rc = 0.015; mu = 0.75; Delta_B = 0.02; Delta_R = 0.015; IRBR = 0.75; NCB = 0
Common errors
Threshold read as averted events per harm event
The threshold is harm events accepted per event averted. Entering the article's 0.25 strokes per bleed in place of 4 bleeds per stroke returns NCB of minus 0.01 in place of 0.065, which reverses the verdict on the same risks and the same judgement (derived).
Number needed to treat compared directly with number needed to harm
The number needed to treat of 50 and the number needed to harm of 66.7 in the article give a ratio of 0.75, which is IRBR (derived) and does not settle the balance until a threshold is stated. EMA Work package 2 section 3.3.2 warns that equal values of the two do not mean a benefit-risk ratio of one, because the clinical significance of the events has to be considered.
Ratio below the threshold read as net beneficial with a negative benefit
With Delta_B = -0.004 and Delta_R = -0.002 the drug averts fewer events and causes fewer harms. IRBR is 0.5, below mu = 4, yet NCB is minus 0.014, so the ratio alone reads as net beneficial while the drug loses more benefit than the threshold allows for the harm it spares (derived).
Sources
Lynd and O'Brien on the risk-benefit threshold and acceptability curve
Lynd LD, O'Brien BJ. Advances in risk-benefit evaluation using probabilistic simulation methods: an application to the prophylaxis of deep vein thrombosis. Journal of Clinical Epidemiology. 2004;57(8):795-803. The abstract describes a second-order Monte Carlo simulation in which beta distributions for the probabilities of a DVT and a major bleed were derived from the clinical trial and incremental probabilities calculated, with 3,000 simulated risk-benefit pairs on a risk-benefit plane. It introduces the risk-benefit acceptability curve, incorporating thresholds mu, the number of major bleeds one is willing to accept in order to avert one DVT.
Lazo-Langner and colleagues on net clinical benefit
Lazo-Langner A, Rodger MA, Barrowman NJ, Ramsay T, Wells PS, Coyle DA. Comparing multiple competing interventions in the absence of randomized trials using clinical risk-benefit analysis. BMC Medical Research Methodology. 2012;12:3. Methods section Estimation of uncertainty, joint risk-benefit and risk-benefit analysis defines IRBR as the ratio of the difference in risk to the difference in benefit, analogous to the ICER, with dominance and the risk-benefit acceptability threshold. Methods section Calculation of the net clinical benefit and indirect comparison of multiple treatment options prints the inequality as equations 1 and 2 and NCB as equation 3, with equation 5 applying it to each simulation trial, and attributes the framework to Lynd and O'Brien. The paper writes the threshold as rho, and these records write mu as Lynd and O'Brien do.
EMA Work package 2 report on probabilistic simulation and number needed to harm
European Medicines Agency. Benefit-risk methodology project. Work package 2 report: applicability of current tools and processes for regulatory benefit-risk assessment. EMA/549682/2010 Revision 1. London: EMA; 31 August 2010. Section 3.1.2 (Probabilistic simulation (Credence decomposition)) describes the Lynd and O'Brien comparison, says its thresholds equate a unit of benefit to a unit of risk, and says the study dealt with two drugs and single risk and benefit criteria. Section 3.3.2 (NNT/NNH) gives both as the inverse of the difference in proportions and warns that equal values do not mean a benefit-risk ratio of one.
Canonical Identity
Stable URI · Machine-readable · Resolvable · CC BY 4.0
