Relative excess risk due to interaction, attributable proportions and synergy index from three relative risks

Measures additive interaction from ratios alone, so it can be used where absolute risks are not available. RERI subtracts the two separate relative risks from the joint one and adds 1, and it equals IC of HE-FM-ADDS-001 divided by the doubly unexposed risk. AP divides RERI by the joint relative risk, the share of the risk among the doubly exposed attributable to interaction; AP_J divides it by the joint excess relative risk, the share of the joint effect. S compares the joint excess relative risk with the sum of the separate excess relative risks. No additive interaction corresponds to RERI, AP and AP_J of 0 and S of 1. Attributable shares of this kind are not the attributable fraction of one exposure, (RR_11 minus 1) over RR_11, which AP matches only when the separate relative risks sum to 2, so with neither below 1 only when both equal 1 (derived).

Signature

RERI = RR_11 - RR_10 - RR_01 + 1; AP = RERI / RR_11; AP_J = RERI / (RR_11 - 1); S = (RR_11 - 1) / ((RR_10 - 1) + (RR_01 - 1))
Inputs
InputsDefinitionUnit
RR_11Risk with both exposures against the doubly unexposed stratumratio, no unit
RR_10Risk with the first exposure only against the doubly unexposed stratum; 1 or above after any recodingratio, no unit
RR_01Risk with the second exposure only against the doubly unexposed stratum; 1 or above after any recodingratio, no unit
Output
RERIJoint excess relative risk minus the sum of the separate excess relative risks; any real value, 0 at no additive interactionexcess relative risk, no unit
APRERI divided by the joint relative risk; 0 at no additive interactionproportion, no unit
AP_JRERI divided by the joint excess relative risk; 0 at no additive interaction and undefined when RR_11 equals 1proportion, no unit
SJoint excess relative risk divided by the sum of the separate excess relative risks; 1 at no additive interactionratio, no unit

Function

Additive interaction of two binary exposures from stratum risks, relative risks or regression coefficients

Maps the outcome risks of the four joint strata of two binary exposures, the three relative risks against the doubly unexposed stratum, or three regression coefficients, to the measures of how far a joint effect departs from the sum of the separate effects (IC, RERI, AP, AP_J and S) and to the multiplicative measure M that the additive scale is read beside. A risk difference inside a stratum takes the form of HE-FM-ARR-001 with the arms read the other way round, a relative effect applied to a baseline risk is HE-FM-ARR-002, and the cost per case prevented or per QALY that follows is HE-FM-ICER-001. The same two no-interaction forms written on utilities are U_add and U_mult of HE-FM-DISU-002. The four-cell subtraction in IC has the algebra of HE-FM-DID-001, which is defined on group means before and after a policy. Notation follows the Additive Interaction Scale article.

Computational function

  • Computational function for RERI, AP and S after recoding to the lowest joint stratum of a four-by-two table

    Finds the joint stratum with the lowest odds, recodes both exposures so that it becomes the reference, and returns RERI, AP and S of HE-FM-ADDS-003 on the recoded odds ratios with a delta-method interval for RERI, the procedure Knol and colleagues set out for preventive exposures. Because the strata are independent in a four-by-two table, the variance of each log odds is the sum of the reciprocal counts and the gradient follows from RERI written on the four log odds (derived), which reproduces their printed intervals, and the last two parts of the chain are the large-sample interval form of HE-FN-AN-001. When the doubly unexposed stratum already has the lowest odds, no recoding happens and the chain returns the HE-FM-ADDS-003 values on the crude odds ratios. Recoding one exposure reverses the sign of IC, so RERI after recoding need not share the sign of RERI before it (derived).

    Inputs and outputs: x_00, x_10, x_01, x_11 are cases and y_00, y_10, y_01, y_11 controls in each stratum, subscripts giving the first and then the second exposure, and z is the normal critical value. Intermediate values are the odds o_ab, their log-scale variances v_ab, the lowest odds o_min, the indicators w_ab marking the reference stratum, the recoded ratios RR_J (both factors changed), RR_A (first changed) and RR_B (second changed) and their variances v_J, v_A, v_B, v_R. Outputs are RERI_r, AP_r, S_r, the variance V_r, the standard error SE_r and the limits L_r and U_r. Each comparison in the chain is 1 when true and 0 when false.

    Assumption: Odds ratios approximate relative risks, the condition Knol and colleagues state for case-control data. The table is unadjusted; adjusted data go through HE-FM-ADDS-005 instead. All eight counts are above zero, since a zero cell makes an odds or a variance undefined. Where strata tie for the lowest odds the chain, MATCH, R and Python all take the first in the order 00, 10, 01, 11. Knol and colleagues give no tie rule, and the choice can matter, because odds of 0.1, 0.1, 0.2 and 0.3 give RERI of 1 or minus 1 depending on the tied stratum chosen (derived), so the code returns a tied flag for this to be reported. S is undefined only when both once-changed ratios equal 1, that is when both strata next to the reference tie with it, and S_r in the chain then divides by zero. A tie of three that includes the joint stratum leaves S defined, at 0 for odds of 0.1, 0.3, 0.1 and 0.1 (checked here).

    Worked example (ACE inhibitors, the ACE gene and diabetes): With the counts of Knol and colleagues' Table 1, x_00 = 90; y_00 = 788; x_10 = 54; y_10 = 674; x_01 = 39; y_01 = 379; x_11 = 20; y_11 = 203; z = 1.96, the lowest odds is the stratum using ACE inhibitors without the DD genotype, so w_10 = 1. The chain gives RR_J = 1.2844; RR_A = 1.4255; RR_B = 1.2297; RERI_r = -0.3709; AP_r = -0.2888; S_r = 0.4340; SE_r = 0.4387; L_r = -1.2307; U_r = 0.4890, matching their Table 2 values of minus 0.37 (minus 1.23 to 0.49), minus 0.29 and 0.43.

    Excel: With cases and controls in rows ordered 00, 10, 01, 11 and helper columns OddsRange =Cases/Controls and VarRange =1/Cases+1/Controls, set RefRow =MATCH(MIN(OddsRange),OddsRange,0), JointRow =5-RefRow, FirstRow =RefRow+IF(MOD(RefRow,2)=1,1,-1) and SecondRow =IF(RefRow<=2,RefRow+2,RefRow-2). Then RelRiskJoint =INDEX(OddsRange,JointRow)/INDEX(OddsRange,RefRow), RelRiskFlipFirst =INDEX(OddsRange,FirstRow)/INDEX(OddsRange,RefRow), RelRiskFlipSecond =INDEX(OddsRange,SecondRow)/INDEX(OddsRange,RefRow), ReriRecoded =RelRiskJoint-RelRiskFlipFirst-RelRiskFlipSecond+1, ApRecoded =ReriRecoded/RelRiskJoint, SynergyRecoded =(RelRiskJoint-1)/((RelRiskFlipFirst-1)+(RelRiskFlipSecond-1)), SeRecoded =SQRT(RelRiskJoint^2*INDEX(VarRange,JointRow)+RelRiskFlipFirst^2*INDEX(VarRange,FirstRow)+RelRiskFlipSecond^2*INDEX(VarRange,SecondRow)+(RelRiskJoint-RelRiskFlipFirst-RelRiskFlipSecond)^2*INDEX(VarRange,RefRow)), LowerRecoded =ReriRecoded-ZValue*SeRecoded and UpperRecoded =ReriRecoded+ZValue*SeRecoded. A blank or zero count returns #DIV/0! in the odds or variance helper, and SynergyRecoded returns #DIV/0! when RelRiskFlipFirst and RelRiskFlipSecond both equal 1.

    R: additive_recode <- function(x, y, z = 1.96) { if (any(x <= 0) || any(y <= 0)) return(NA); o <- x/y; v <- 1/x + 1/y; r <- which.min(o); j <- 5L-r; a <- if (r %% 2L == 1L) r+1L else r-1L; b <- if (r <= 2L) r+2L else r-2L; J <- o[j]/o[r]; A <- o[a]/o[r]; B <- o[b]/o[r]; reri <- J-A-B+1; se <- sqrt(J^2*v[j]+A^2*v[a]+B^2*v[b]+(J-A-B)^2*v[r]); c(ref = r, reri = reri, ap = reri/J, s = (J-1)/((A-1)+(B-1)), lower = reri-z*se, upper = reri+z*se, tied = sum(o == min(o)) > 1) }; additive_recode(c(90, 54, 39, 20), c(788, 674, 379, 203)) returns the worked example values with ref 2 and NA for a zero count. Where A and B both equal 1, S is Inf, or NaN when all four strata tie.

    Python: def recode_core(x, y, z): o = [a/b for a, b in zip(x, y)]; v = [1/a+1/b for a, b in zip(x, y)]; r = o.index(min(o)); j = 3-r; a = r+1 if r % 2 == 0 else r-1; b = r+2 if r <= 1 else r-2; J, A, B = o[j]/o[r], o[a]/o[r], o[b]/o[r]; reri = J-A-B+1; se = (J**2*v[j]+A**2*v[a]+B**2*v[b]+(J-A-B)**2*v[r])**0.5; return dict(ref=r, reri=reri, ap=reri/J, s=(J-1)/(A+B-2) if A+B != 2 else None, lower=reri-z*se, upper=reri+z*se, tied=o.count(min(o)) > 1) def additive_recode(x, y, z=1.96): return recode_core(x, y, z) if min(x) > 0 and min(y) > 0 else None additive_recode([90, 54, 39, 20], [788, 674, 379, 203]) returns the same values with ref 1, the second stratum counted from 0. It returns None for a zero count, and s of None where A and B both equal 1.

    Test (printed estimates): =AND(ABS(ReriRecoded+0.37)<0.005,ABS(ApRecoded+0.29)<0.005,ABS(SynergyRecoded-0.43)<0.005) with the counts above. Expected result TRUE. FALSE shows a wrong reference or a wrong result cell, since ReriRecoded doubled is about minus 0.74 and halved about minus 0.19, and recoding nothing gives RERI of about 0.26.

    Test (printed interval): =AND(ABS(LowerRecoded+1.23)<0.005,ABS(UpperRecoded-0.49)<0.005) with the same counts. Expected result TRUE. FALSE shows a wrong variance or limit, since SeRecoded doubled moves the limits to about minus 2.09 and 1.35, and leaving out the reference term gives limits of about minus 1.14 and 0.40.

    Common error (recoding one factor at a time): Knol and colleagues' Appendix gives a table where choosing each factor's reference separately returns a negative synergy index, while joint recoding returns S below 1 in agreement with negative RERI and AP.

    Source: Knol MJ, VanderWeele TJ, Groenwold RH, Klungel OH, Rovers MM, Grobbee DE. Estimating measures of interaction on an additive scale for preventive exposures. European Journal of Epidemiology. 2011;26(6):433-438. doi:10.1007/s10654-011-9554-9. Sections Analyses and Method of Recoding, Tables 1 and 2, Appendix.

    o_00 = x_00 / y_00; o_10 = x_10 / y_10; o_01 = x_01 / y_01; o_11 = x_11 / y_11; v_00 = 1 / x_00 + 1 / y_00; v_10 = 1 / x_10 + 1 / y_10; v_01 = 1 / x_01 + 1 / y_01; v_11 = 1 / x_11 + 1 / y_11; o_min = min(min(o_00, o_10), min(o_01, o_11)); w_00 = (o_00 <= o_min); w_10 = (1 - w_00) * (o_10 <= o_min); w_01 = (1 - w_00) * (1 - w_10) * (o_01 <= o_min); w_11 = 1 - w_00 - w_10 - w_01; RR_J = (w_00 * o_11 + w_10 * o_01 + w_01 * o_10 + w_11 * o_00) / o_min; RR_A = (w_00 * o_10 + w_10 * o_00 + w_01 * o_11 + w_11 * o_01) / o_min; RR_B = (w_00 * o_01 + w_10 * o_11 + w_01 * o_00 + w_11 * o_10) / o_min; v_J = w_00 * v_11 + w_10 * v_01 + w_01 * v_10 + w_11 * v_00; v_A = w_00 * v_10 + w_10 * v_00 + w_01 * v_11 + w_11 * v_01; v_B = w_00 * v_01 + w_10 * v_11 + w_01 * v_00 + w_11 * v_10; v_R = w_00 * v_00 + w_10 * v_10 + w_01 * v_01 + w_11 * v_11; RERI_r = RR_J - RR_A - RR_B + 1; AP_r = RERI_r / RR_J; S_r = (RR_J - 1) / ((RR_A - 1) + (RR_B - 1)); V_r = RR_J^2 * v_J + RR_A^2 * v_A + RR_B^2 * v_B + (RR_J - RR_A - RR_B)^2 * v_R; SE_r = sqrt(V_r); L_r = RERI_r - z * SE_r; U_r = RERI_r + z * SE_r

Try this function

Implementations

  • Excel

    RERI, attributable proportions and synergy index from named relative risk cells

    With the relative risks in RelRiskBoth, RelRiskFirstOnly and RelRiskSecondOnly, the formulas return ReriValue, ApValue, ApJointValue and SynergyIndex. ApJointValue returns #DIV/0! when RelRiskBoth is 1, and SynergyIndex returns #DIV/0! when the two separate excesses sum to zero.

    =RelRiskBoth-RelRiskFirstOnly-RelRiskSecondOnly+1; =ReriValue/RelRiskBoth; =ReriValue/(RelRiskBoth-1); =(RelRiskBoth-1)/((RelRiskFirstOnly-1)+(RelRiskSecondOnly-1))

Assumptions

  • Exposures coded so that neither separate relative risk is below 1

    Knol and colleagues state that the measures were developed for risk factors, and that the stratum with the lowest risk, with both factors considered jointly, should become the reference, after which RERI, AP and S always agree in direction. HE-CF-ADDS-001 carries out that recoding.

  • Odds ratios used only where they approximate relative risks

    Knol and colleagues state that the measures can be used with case-control data provided the odds ratio approximates the relative risk. Kalilani and Atashili show the substitution failing as the baseline risk rises, and give corrected measures from stratum odds.

  • Non-zero denominators in the attributable proportions and synergy index

    AP_J is undefined when RR_11 equals 1 and S is undefined when the separate excess relative risks sum to zero, and Excel returns #DIV/0! in each case (derived). RERI stays defined in both cases and is the measure to report there.

Worked examples

  • Article's relative risks of 3, 4 and 12 on the additive scale

    In the article's illustrative example RERI is 6, AP is 0.5 and S is 2.2. AP_J is 6 divided by 11, a little above AP because its denominator leaves out the baseline risk.

    RR_11 = 12; RR_10 = 3; RR_01 = 4; RERI = 6; AP = 0.5; AP_J = 0.5455; S = 2.2
  • Limiting case of exact additivity with a joint relative risk of 6

    With separate relative risks of 3 and 4 and a joint relative risk of 6 (illustrative), the joint excess of 5 equals the sum of the separate excesses, so RERI, AP and AP_J are 0 and S is 1.

    RR_11 = 6; RR_10 = 3; RR_01 = 4; RERI = 0; AP = 0; AP_J = 0; S = 1
  • Knol and VanderWeele antidepressant and diabetes example

    Knol and VanderWeele calculate RERI as 0.36 from relative risks of 2.07, 1.55 and 1.16. The same chain returns AP, AP_J and S from those relative risks (derived, these three are not quoted from the paper).

    RR_11 = 2.07; RR_10 = 1.55; RR_01 = 1.16; RERI = 0.36; AP = 0.1739; AP_J = 0.3364; S = 1.507

Common errors

  • Calculating the measures with a preventive exposure before recoding

    In the ACE inhibitor and diabetes data of Knol and colleagues, odds ratios of 0.70, 0.90 and 0.86 gave RERI of 0.26 and AP of 0.30, suggesting positive interaction, and S of 0.35, suggesting negative interaction. After recoding to the lowest-risk joint stratum the values were minus 0.37, minus 0.29 and 0.43, all indicating negative interaction.

  • Substituting odds ratios for relative risks with a common outcome

    Kalilani and Atashili report that with no interaction and a baseline risk of 0.30 the substituted measure reaches 15 where the true value is 0. Risks of 0.30, 0.60, 0.60 and 0.90 are exactly additive, yet their odds ratios of 3.5, 3.5 and 21 return 15 (recomputed here). Knol and VanderWeele advise relative risks over odds ratios where possible for this reason.

  • Reading the attributable proportion as a share of the joint effect

    AP uses the joint relative risk as its denominator and AP_J the joint excess, and the article's example gives 0.5 against 0.5455. Knol and colleagues label AP the proportion of the combined effect, while VanderWeele and also Mathur and VanderWeele give that reading to RERI divided by (RR_11 minus 1), so a report should name its denominator.

Sources

  • Knol and colleagues on RERI, AP, S and recoding preventive exposures

    Knol MJ, VanderWeele TJ, Groenwold RH, Klungel OH, Rovers MM, Grobbee DE. Estimating measures of interaction on an additive scale for preventive exposures. European Journal of Epidemiology. 2011;26(6):433-438. doi:10.1007/s10654-011-9554-9. Open access full text read (PMC3115067). Section Measures of Interaction on an Additive Scale prints the three formulas with null values of 0, 0 and 1, and labels AP the proportion of the combined effect that is due to interaction; the records follow the reading in HE-SR-ADDS-018. Section Method of Recoding and the Appendix show that choosing the lowest-risk joint stratum as the reference makes the three measures agree. Tables 1 and 2 give the values before and after recoding, and the Introduction states that the measures can be used with case-control data provided the odds ratio approximates the relative risk.

    View source →

  • VanderWeele on RERI as the ratio form of additive interaction

    VanderWeele TJ. The interaction continuum. Epidemiology. 2019;30(5):648-658. doi:10.1097/EDE.0000000000001054. Section Definitions and Notation states additive interaction equivalently as RR11 minus RR10 minus RR01 plus 1, sometimes referred to as the relative excess risk due to interaction or the interaction contrast ratio.

    View source →

  • Mathur and VanderWeele table separating AP from the proportion of the joint effect

    Mathur MB, VanderWeele TJ. R function for additive interaction measures. Epidemiology. 2018;29(1):e5-e6 (read as the PMC author manuscript PMC5718923; erratum Epidemiology. 2019;30(4):e30, doi:10.1097/EDE.0000000000001010, read on the publisher page, corrects only the last two rows of the Table, the share of the joint effect due to each exposure). doi:10.1097/EDE.0000000000000752. Table. RERI is RR11 minus RR01 minus RR10 plus 1; the attributable proportion RERI divided by RR11 is the proportion of outcome risk in the doubly exposed group attributable to interaction; RERI divided by (RR11 minus 1) is the proportion of the joint effect attributable to interaction.

    View source →

  • Knol and VanderWeele RERI calculation and advice on relative risks

    Knol MJ, VanderWeele TJ. Recommendations for presenting analyses of effect modification and interaction. International Journal of Epidemiology. 2012;41(2):514-520. doi:10.1093/ije/dyr218. Full text read in PMC3324457. Section Effect Modification, subsection Example, calculates the RERI as 2.07 minus 1.55 minus 1.16 plus 1, or 0.36. The text after Table 1 recommends relative risks over odds ratios when possible because with a common outcome odds ratios may exaggerate interaction measures.

    View source →

  • Kalilani and Atashili on odds ratios substituted for relative risks

    Kalilani L, Atashili J. Measuring additive interaction using odds ratios. Epidemiologic Perspectives & Innovations. 2006;3:5. doi:10.1186/1742-5573-3-5. Sections Simulations and assumptions and Results (open access full text read). With the separate risk ratios fixed at 2 and no interaction, the measure calculated from odds ratios overestimates the true value of 0, reaching 15 at a baseline risk of 0.30. Appendix I gives equations for the measures from stratum odds.

    View source →

  • VanderWeele on the two denominators of the attributable proportion

    VanderWeele TJ. Reconsidering the denominator of the attributable proportion for interaction. European Journal of Epidemiology. 2013;28(10):779-784 (read as the PMC author manuscript PMC3882023). doi:10.1007/s10654-013-9843-6. AP, RERI divided by RR11, captures the proportion of the disease in the doubly exposed group that is due to the interaction. The alternative measure AP*, RERI divided by (RR11 minus 1), captures the proportion of the effect of both exposures that is due to interaction.

    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/relative-excess-risk-due-to-interaction-attributable-proportions-and-synergy-index-from-three-relative-risks