Functions & Formulae

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

All-cause mortality function for model inputs from life-table counts and overall hazard ratios

g(D_x, P_x, oHR, mu_bg, mu_dis, D_i) = (q_x, dsHR, q_del)

Maps life-table counts at one age to the one-year probability of death, maps an overall hazard ratio and the mortality rates of its trial to the disease-specific hazard ratio they imply, and removes one cause of death from a life-table probability so that a model does not count it twice. All-cause mortality enters a model as the background hazard h_bg and the all-cause hazard h_all of HE-FM-BTH-005, which is the additive form and is not restated. The multiplicative form, the general population hazard times a constant, takes the form of HE-FM-HR-001 solved for its numerator, a record defined for a treatment against a comparator (HE-VR-HR-001). HE-FN-BGM-001 says a multiplier on background mortality, such as a standardised mortality ratio, enters a cycle probability in the same way as the hazard ratio of HE-FM-HR-004, so a probability of 0.25 with a multiplier of 4 gives 0.6836, the figure in step 3 of the article (computed here). Conversions between probabilities and rates are HE-FM-TP-001, HE-FM-TP-002, HE-FM-TP-003 and HE-CF-TP-002. HE-FM-BGM-001 gives relative survival, HE-FM-BGM-002 the all-cause cycle probability from background and disease probabilities, and HE-CF-BGM-001 background probabilities cycle by cycle. HE-VT-BTH-008 checks that an all-cause hazard is not below the background hazard, the floor the article describes. Notation follows the All-Cause Mortality article.

  • One-year probability of death from the central rate of mortality in a national life table

    m_x = D_x / P_x; q_x = 2 * m_x / (2 + m_x)

    Divides deaths at age x last birthday by the mid-year population at that age to give the central rate of mortality, then converts the central rate into the probability that a person aged exactly x dies before reaching age x + 1, the two steps of the Office for National Statistics (ONS) guide for ages above 1 year. The first step is a rate of the form of HE-FM-AER-002. The second assumes deaths spread evenly over the year of age, so the population at risk at the start of the year is the mid-year population plus half the deaths (derived). The result is a one-year probability that fits an annual cycle directly, and HE-FM-TP-003 rescales it to any other cycle. It differs slightly from the exponential conversion HE-FM-TP-001, by 0.0000007 at a central rate of 0.02 and 0.0015 at 0.285714 (computed here).

  • Disease-specific hazard ratio implied by an overall hazard ratio

    dsHR = (oHR * (mu_bg + mu_dis) - mu_bg) / mu_dis

    Converts a published all-cause hazard ratio into the hazard ratio on disease-specific mortality alone, assuming the treatment leaves background mortality unchanged. It is Equation 6 of Alarid-Escudero and Kuntz, who write the overall hazard ratio as treated all-cause mortality over control all-cause mortality, each the sum of background and disease-specific rates, and solve for dsHR; this is HE-FM-HR-001 with the hazards of HE-FM-BTH-005 in its numerator and denominator. The disease-specific rate is the control-arm all-cause rate less the background rate. Their Equation 7 is the same expression written with the control-arm all-cause rate, mu_bg being that rate less mu_dis, and it covers comorbid mortality added to the background rate that treatment does not affect. The ratio is carried beyond the trial on the disease-specific hazard alone, because background mortality rises with age and treatment is taken not to reduce it. For an overall ratio below 1, dsHR is lower than oHR by 1 minus oHR, times mu_bg / mu_dis (derived).

  • One-year probability of death with one cause of death eliminated from a life table

    r_i = D_i / D_x; q_del = 1 - (1 - q_x)^(1 - r_i)

    Removes deaths from one cause from a life-table probability, the step behind the cause-deleted life table of the article, using the exponential formula of the National Center for Health Statistics cause-elimination tables. The share of recorded deaths in the age interval due to the cause sets the power applied to the all-cause probability of surviving, and the result is the probability of death if that cause did not exist, with those who would have died of it still exposed to other causes. This is the separation that Alarid-Escudero and Kuntz name as the alternative to treating disease deaths in the life table as negligible, and that HE-AS-BGM-004 names as a remedy. In rate form, the rate of HE-FM-TP-002 read from q_del is the rate read from q_x times 1 minus r_i (derived). The second part has the algebra of HE-FM-HR-004 with 1 minus r_i in the place of HR, but r_i is a share of recorded deaths, not a treatment effect. The first part is a plain proportion of the form of P_1 in HE-FM-PR-001. The rate read from the result can then take a disease-specific hazard in the additive form of HE-FM-BTH-005 without double counting (derived).

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/all-cause-mortality/formulae