Functions & Formulae

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

Attributable cost estimation function by counterfactual prediction, removal order and extra stay

A(x_P, g_P, x_M, g_M, n_ij, S_00, b_k, a_ij, c_d) = (AC, AF_U, AF_L, AF_k, CLOS, C_I)

Maps the fitted coefficients of a spending model, a table of people by condition, or the hazards of a hospital multistate model to the spending attributable to a disease, condition or infection, each as a difference from a counterfactual that cannot be observed for the same people. HE-FM-ACE-001 compares two predictions for one person from a two-part regression, and the mean over people with the disease is the treated-mix average of HE-FM-ATE-002 with those differences as subgroup effects, while the total is HE-FM-COI-001. The attributable-fraction route is HE-FM-COI-002 for each condition, added by HE-FM-COI-003, with the fraction taken from the attributable fraction concept, so it has no separate record here. HE-FM-ACE-002 and HE-FM-ACE-003 deal with conditions that occur together, and HE-FM-ACE-004 gives the extra stay from a hospital infection, valued in bed days as in HE-FM-ALOS-006. Notation follows the Attributable Cost Estimation article.

  • Two-part attributable cost of one person with the disease from a logit and a log-link model

    p_1 = exp(x_P + g_P) / (1 + exp(x_P + g_P)); p_0 = exp(x_P) / (1 + exp(x_P)); m_1 = exp(x_M + g_M); m_0 = exp(x_M); mu_1 = p_1 * m_1; mu_0 = p_0 * m_0; AC = mu_1 - mu_0

    Predicts a person's yearly spending twice from a fitted two-part model, once with the disease indicator as observed and once set to zero, and subtracts. Each prediction is the probability of any spending from the logit part, the inverse logit form of HE-FM-BINOM-007, times the expected spending if positive from the log-link part. The person's other characteristics are held in the two indices, so the same coefficients give a different cost for each person. Averaged over people with the disease the result is the regression-based estimate of Honeycutt and colleagues, carried out in HE-CF-ACE-001. The product has the arithmetic of a chance node with a zero branch (HE-FM-CHN-001), but both of its parts here are fitted regression predictions, not the branch values of a decision tree.

  • Upper and lower attributable fractions of two conditions under a multiplicative spending model

    S_10 = S_00 * exp(b_1); S_01 = S_00 * exp(b_2); S_11 = S_00 * exp(b_1 + b_2); T = n_00 * S_00 + n_10 * S_10 + n_01 * S_01 + n_11 * S_11; AF_U1 = (n_10 * (S_10 - S_00) + n_11 * (S_11 - S_01)) / T; AF_L1 = (n_10 + n_11) * (S_10 - S_00) / T; AF_U2 = (n_01 * (S_01 - S_00) + n_11 * (S_11 - S_10)) / T; AF_L2 = (n_01 + n_11) * (S_01 - S_00) / T; AF_C = (n_10 * (S_10 - S_00) + n_01 * (S_01 - S_00) + n_11 * (S_11 - S_00)) / T

    Sets out predicted spending for the four types of person in a two-condition model that is multiplicative in levels, then removes each condition in turn. Removing a condition while the other stays as observed gives the standard fraction, the upper bound, and removing it after the other is gone gives the lower bound, each divided by observed spending. Removing both at once gives the combined fraction. Upper fractions add to more than the combined fraction whenever people have both conditions and both coefficients are above 0 (derived), since each takes credit for the joint spending. The upper fraction takes the form of HE-FM-PR-003, with the condition's prevalence as e and exp(b) in the place of PR, when the two conditions are independent or the coefficient of the other condition is 0 (derived), and HE-FM-ACE-003 gives a split that adds up.

  • Redistribution of joint spending to two conditions by exponential mean coefficients

    w_1 = exp(b_1) - 1; w_2 = exp(b_2) - 1; s_1 = w_1 / (w_1 + w_2); s_2 = w_2 / (w_1 + w_2); A_1 = A_10 + s_1 * A_11; A_2 = A_01 + s_2 * A_11; AF_1 = A_1 / T; AF_2 = A_2 / T

    Treats each combination of conditions as its own class and gives each condition its own class plus a share of the class with both, so that the fractions add to the combined fraction of HE-FM-ACE-002. The share is equation (1) of Trogdon and colleagues, exp(b) minus 1 over the same term summed across the joint conditions. Subtracting 1 gives a condition with no effect a share of zero, and the denominator makes the shares sum to one. The split takes the proportional form of HE-FM-DWT-003, which apportions a combined disability weight among stand-alone weights, here on a relative excess that can exceed 1. Class spending A_10, A_01 and A_11 comes from the spending table of HE-FM-ACE-002.

  • Expected extra hospital stay from an infection under constant multistate hazards with its bed-day cost

    a_0 = a_01 + a_02 + a_03; a_1 = a_12 + a_13; CLOS = ((a_02 + a_03) / a_1 - 1) / a_0; C_I = CLOS * c_d

    Gives the difference in expected stay between a patient infected at a given time and one still uninfected at that time, the quantity Schulgen and Schumacher proposed, in the closed form Rahman and colleagues print for constant hazards. Uninfected patients leave by infection, discharge or death and infected patients by discharge or death. The expected stay of the uninfected state is HE-FM-CONT-002 at q_WS = a_01, q_WD = a_02 + a_03 and q_SD = a_1, and CLOS equals 1 / a_1 minus that value (derived). Each hazard is events over person-time, the form of HE-FM-AER-002. The cost line takes the form of HE-FM-ALOS-006 for one patient, with CLOS in the place of the fall in stay.

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/attributable-cost-estimation/formulae

Attributable Cost Estimation — Functions & Formulae | HealthEconomics.wiki