Functions & Formulae

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

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

a(p_00, p_10, p_01, p_11) = (IC, M, RERI, AP, AP_J, S)

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.

  • Interaction contrast from the risks of four joint exposure strata

    RD_10 = p_10 - p_00; RD_01 = p_01 - p_00; RD_11 = p_11 - p_00; IC = RD_11 - RD_10 - RD_01

    Takes the risk in people with neither exposure as the single reference, forms the risk difference of each other stratum against it and subtracts the two separate differences from the joint one. An IC of zero means the joint risk difference equals the sum of the separate risk differences; a positive value is more than additive and a negative value less than additive. Each difference takes the form of HE-FM-ARR-001 with the subtraction reversed, so an exposure that raises risk gives a positive difference. IC also equals the first exposure's risk difference among people with the second exposure minus its risk difference among people without it, the four-cell algebra of HE-FM-DID-001 applied to two exposures at one time in place of a group and a period (derived).

  • Multiplicative interaction measure from three relative risks

    M = RR_11 / (RR_10 * RR_01)

    Divides the joint relative risk by the product of the two separate relative risks, all against the doubly unexposed stratum. M of 1 means no multiplicative interaction, above 1 positive and below 1 negative. Each relative risk is the stratum risk divided by the risk with neither exposure, the ratio form of HE-FM-ATR-003, so M also equals p_11 p_00 divided by p_10 p_01. It is the comparator for the additive scale, because the same data can show opposite directions on the two scales. When both exposures raise risk and M equals 1, IC is still positive and equals p_00 (RR_10 minus 1) (RR_01 minus 1).

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

    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))

    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).

  • Relative excess risk due to interaction from regression coefficients with a product term

    OR_10 = exp(b_1); OR_01 = exp(b_2); OR_11 = exp(b_1 + b_2 + b_3); RERI_b = OR_11 - OR_10 - OR_01 + 1

    Turns the fitted coefficients of a model with two binary exposures and their product term into ratios against the doubly unexposed stratum, then applies the RERI form of HE-FM-ADDS-003. Each exponentiated coefficient has the form of HE-FM-HR-002 in a Cox model and is an odds ratio in a logistic model, and the model can adjust for confounders, which a four-by-two table cannot. The product term itself measures multiplicative interaction, since exp(b_3) equals M of HE-FM-ADDS-002 with the same ratios. RERI splits into (OR_10 minus 1)(OR_01 minus 1) plus exp(b_1 + b_2)(exp(b_3) minus 1), so it can be well above zero when b_3 is close to zero (derived).

  • Delta-method standard error and confidence interval for RERI from regression coefficients

    OR_10 = exp(b_1); OR_01 = exp(b_2); OR_11 = exp(b_1 + b_2 + b_3); RERI_b = OR_11 - OR_10 - OR_01 + 1; h_1 = OR_11 - OR_10; h_2 = OR_11 - OR_01; h_3 = OR_11; V_R = h_1^2 * V_1 + h_2^2 * V_2 + h_3^2 * V_3 + 2 * h_1 * h_2 * C_12 + 2 * h_1 * h_3 * C_13 + 2 * h_2 * h_3 * C_23; SE_R = sqrt(V_R); L_R = RERI_b - z * SE_R; U_R = RERI_b + z * SE_R

    Carries the variances and covariances of the three coefficients of HE-FM-ADDS-004 through the partial derivatives of RERI to give a large-sample standard error and interval. The derivatives h_1, h_2 and h_3 follow from differentiating RERI_b (derived), and the method is the delta method that Knol and VanderWeele cite to Hosmer and Lemeshow. The last two parts are the large-sample interval form of HE-FN-AN-001; HE-FM-AN-002 is the delta method for an ICER, a different function. Knol and colleagues' printed intervals are reproduced from their counts, which is the check on the derivation.

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/additive-scale/formulae