Signature
dsHR = (oHR * (mu_bg + mu_dis) - mu_bg) / mu_dis
| Inputs | Definition | Unit |
|---|---|---|
oHR | Ratio of treated to control all-cause mortality rates over the trial | ratio, no unit |
mu_bg | Average background mortality rate of the trial population over follow-up, from life tables for its age and sex | deaths per person-year |
mu_dis | Average disease-specific mortality rate without treatment, greater than zero | deaths per person-year |
dsHR | Ratio of the disease-specific mortality rate with treatment to the rate without it | ratio, no unit |
|---|
Function
All-cause mortality function for model inputs from life-table counts and overall hazard ratios
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.
Computational function
Computational function for the overall hazard ratio extrapolation bias in life expectancy across age bands
Takes a trial's control-arm all-cause rate, its average background rate and its overall hazard ratio, with background rates by age band for the modelled cohort, and returns dsHR from HE-FM-ACM-002, the treated hazards in every band under the overall and the disease-specific ratio, life expectancy in three arms, and the oHR extrapolation bias of Alarid-Escudero and Kuntz, their Equation 5 for the percentage change in gains. The disease-specific rate is the control rate less the background rate, the split of HE-FM-BTH-005, and the overall route multiplies the whole control hazard by oHR, HE-FM-HR-001 solved for its numerator. Life expectancy in each arm chains the survival and area steps of HE-FM-BTH-001 across the bands and closes the last band as HE-CF-BTH-001 does, so its inputs differ from the formula's symbols. The calculator line writes out three bands, the last open-ended; the Excel helper columns follow the same layout and the R and Python code takes any number of bands. The authors ran a state-transition model on US life tables, and this piecewise constant version with illustrative bands does not reproduce their figures.
Inputs and outputs:
mu_cis the control-arm all-cause rate in the trial andmu_bgits average background rate, both per person-year;oHRis the overall hazard ratio;bg_1,bg_2andbg_3are the background rates of the modelled cohort in each age band, per person-year;L_1andL_2are the lengths of the first two bands in years.mu_disis the disease-specific rate anddsHRthe implied ratio.hc_,ho_andhd_are the band hazards with no treatment, on the overall route and on the disease-specific route;Sc_,So_andSd_are survival at the end of bands 1 and 2;E_c,E_oandE_dare life expectancies in years;G_oandG_dare the gains in years on each route;Biasis in per cent.Assumption: The assumptions of HE-FM-ACM-002 hold (HE-AS-ACM-004 to HE-AS-ACM-006), the disease-specific rate is constant, each band's background rate is constant, and the effect lasts for life, the duration in the base case of the authors. Discounting and quality of life are left out, so the gains are undiscounted life years (derived).
Worked example (Article's population with three illustrative bands): A cohort at age 70 with the inputs of step 5 of the article, a background rate of 0.020203 for ten years, 0.105361 for the next ten, the article's age 85 rate, and then 0.287682, the article's age 95 rate. The treated hazards in band 2 are 0.124289 on the overall route, as in the article, and 0.14132 on the disease-specific route; the article shows 0.141321 because it rounds dsHR to 0.7192. The overall route gains 1.5141 years against 1.1227, a bias of 34.86% (computed here, illustrative).
mu_c = 0.070203; mu_bg = 0.020203; oHR = 0.80; bg_1 = 0.020203; bg_2 = 0.105361; bg_3 = 0.287682; L_1 = 10; L_2 = 10; mu_dis = 0.05; dsHR = 0.719188; hc_1 = 0.070203; hc_2 = 0.155361; hc_3 = 0.337682; ho_1 = 0.056162; ho_2 = 0.124289; ho_3 = 0.270146; hd_1 = 0.056162; hd_2 = 0.14132; hd_3 = 0.323641; Sc_1 = 0.495578; Sc_2 = 0.104806; So_1 = 0.570282; So_2 = 0.164555; Sd_1 = 0.570282; Sd_2 = 0.138785; E_c = 10.0108; E_o = 11.5249; E_d = 11.1335; G_o = 1.5141; G_d = 1.1227; Bias = 34.86Worked example (Background rate unchanged after the trial): With every band at the trial's background rate the two routes give the same hazards, so the bias is zero, the limiting case in which an overall ratio can be carried forward (derived).
mu_c = 0.070203; mu_bg = 0.020203; oHR = 0.80; bg_1 = 0.020203; bg_2 = 0.020203; bg_3 = 0.020203; L_1 = 10; L_2 = 10; mu_dis = 0.05; dsHR = 0.719188; hc_1 = 0.070203; hc_2 = 0.070203; hc_3 = 0.070203; ho_1 = 0.056162; ho_2 = 0.056162; ho_3 = 0.056162; hd_1 = 0.056162; hd_2 = 0.056162; hd_3 = 0.056162; Sc_1 = 0.495578; Sc_2 = 0.245598; So_1 = 0.570282; So_2 = 0.325222; Sd_1 = 0.570282; Sd_2 = 0.325222; E_c = 14.2444; E_o = 17.8055; E_d = 17.8055; G_o = 3.5611; G_d = 3.5611; Bias = 0Excel: With named cells ControlRateCF, BgRateTrialCF and OverallHRCF, a cell named DisRateCF holds
=ControlRateCF-BgRateTrialCFand a cell named DiseaseHRCF holds=(OverallHRCF*ControlRateCF-BgRateTrialCF)/DisRateCF. Enter the band lengths inA2:A3and the background rates inB2:B4. Fill down rows 2 to 4 with=B2+DisRateCFin C,=OverallHRCF*C2in D and=B2+DiseaseHRCF*DisRateCFin E. For the no-treatment arm enter 1 in F2,=F2*EXP(-C2*A2)in F3 and=F3*EXP(-C3*A3)in F4, then=(F2-F3)/C2in G2,=(F3-F4)/C3in G3 and=F4/C4in G4. Build the overall arm the same way from column D in H and I, and the disease-specific arm from column E in J and K. Name=SUM(G2:G4)LifeExpControl,=SUM(I2:I4)LifeExpOverall and=SUM(K2:K4)LifeExpDisease, and a cell named BiasPercent holds=(LifeExpOverall-LifeExpDisease)/(LifeExpDisease-LifeExpControl)*100. An oHR of 1 returns #DIV/0! in BiasPercent, because both gains are zero, and a control rate equal to the background rate returns #DIV/0! in DiseaseHRCF.R:
acm_le <- function(h, L) { n <- length(h); k <- seq_len(n-1); S <- c(1, cumprod(exp(-h[k]*L))); sum(S[k]*(1-exp(-h[k]*L))/h[k])+S[n]/h[n] }; acm_bias <- function(mu_c, mu_bg, oHR, bg, L) { mu_dis <- mu_c-mu_bg; ds <- if (mu_dis > 0) (oHR*mu_c-mu_bg)/mu_dis else NaN; if (is.nan(ds) || ds < -1e-12 || oHR <= 0 || (ds < 1e-12 && min(bg) <= 0)) return(list(dsHR = ds, bias = NaN)); e_c <- acm_le(bg+mu_dis, L); e_o <- acm_le(oHR*(bg+mu_dis), L); e_d <- acm_le(bg+ds*mu_dis, L); g <- e_d-e_c; list(dsHR = ds, gain_o = e_o-e_c, gain_d = g, bias = if (abs(g) > 1e-12) (e_o-e_d)/g*100 else NaN) }acm_bias(0.070203, 0.020203, 0.8, c(0.020203, 0.105361, 0.287682), c(10, 10))returns dsHR 0.719188, gains 1.5141 and 1.1227 and bias 34.86. It returns NaN for the bias when mu_c is not above mu_bg, when dsHR is negative, when oHR is 1 or not above 0, or when dsHR is 0 and a band's background rate is 0, taking a dsHR within 1E-12 of 0 as 0 because rounding can leave a tiny value, and it accepts a single band withLofnumeric(0).Python:
import mathdef acm_le(h, L): S = [1.0]; [S.append(S[-1]*math.exp(-a*b)) for a, b in zip(h, L)]; return sum((S[i]-S[i+1])/h[i] for i in range(len(L)))+S[-1]/h[-1]def acm_bias(mu_c, mu_bg, oHR, bg, L): mu_dis = mu_c-mu_bg; ds = (oHR*mu_c-mu_bg)/mu_dis if mu_dis > 0 else float('nan'); bad = not (ds >= -1e-12 and oHR > 0 and (ds >= 1e-12 or min(bg) > 0)); e = [float('nan')]*3 if bad else [acm_le([b+mu_dis for b in bg], L), acm_le([oHR*(b+mu_dis) for b in bg], L), acm_le([b+ds*mu_dis for b in bg], L)]; g = e[2]-e[0]; return ds, e[1]-e[0], g, (e[1]-e[2])/g*100 if abs(g) > 1e-12 else float('nan')Standard library only;acm_bias(0.070203, 0.020203, 0.8, [0.020203, 0.105361, 0.287682], [10, 10])returns dsHR 0.719188, gains 1.5141 and 1.1227 and bias 34.86, with the same NaN cases as the R code and a single band accepted with an emptyL.Test (Article's population with three illustrative bands): BiasPercent is compared with the hand value 34.86. Expected result TRUE. FALSE shows OverallHRCF used in place of DiseaseHRCF in column E (94.11), and a cell doubled to 69.72 or halved to 17.43. Excel check
=ABS(BiasPercent-34.86)<0.05Test (Background rate unchanged after the trial): With every band at BgRateTrialCF, BiasPercent is zero. Expected result TRUE. FALSE shows OverallHRCF used in place of DiseaseHRCF in column E (50.51). Excel check
=ABS(BiasPercent)<0.001Test (Gap between the two treated hazards in band 2): The disease-specific route exceeds the overall route by 1 minus oHR, times the band's background rate less the trial's (derived, grid of 192,000 cases), which uses neither dsHR nor the disease rate. Expected result TRUE. With the first example's inputs, FALSE shows
E3doubled (gap 0.158352 against 0.017032) or halved (gap minus 0.053629). Excel check=ABS((E3-D3)-(1-OverallHRCF)*(B3-BgRateTrialCF))<0.00001Common error (Treating 28% as a fixed correction): The authors' base case gives 28% for a cohort of 50-year-old patients, and the bias ranged between 3% and 140% as they varied start age, disease-specific mortality, dsHR and duration of effect. It is not a factor to apply to another model.
Common error (Comparing the two routes at the trial's own background rate): At a background rate equal to
mu_bgthe two hazards are equal by construction (0.056162 in band 1 of the example), so a check made only at the trial age shows no difference. The gap appears at later ages, 0.017032 per year in band 2.Source: Alarid-Escudero F, Kuntz KM. Potential bias associated with modeling the effectiveness of healthcare interventions in reducing mortality using an overall hazard ratio. Author manuscript, PMC7024667 (full text read). Published as PharmacoEconomics. 2020;38(3):285-296 (not seen). Section 2.1, the oHR and dsHR approaches and Equation 5; section 2.2, Equation 6; section 2.3, the two-state model with an additive disease-specific rate; the abstract, the 28% base case and the range between 3% and 140%.
mu_dis = mu_c - mu_bg; dsHR = (oHR * mu_c - mu_bg) / mu_dis; hc_1 = bg_1 + mu_dis; hc_2 = bg_2 + mu_dis; hc_3 = bg_3 + mu_dis; ho_1 = oHR * hc_1; ho_2 = oHR * hc_2; ho_3 = oHR * hc_3; hd_1 = bg_1 + dsHR * mu_dis; hd_2 = bg_2 + dsHR * mu_dis; hd_3 = bg_3 + dsHR * mu_dis; Sc_1 = exp(-hc_1 * L_1); Sc_2 = Sc_1 * exp(-hc_2 * L_2); So_1 = exp(-ho_1 * L_1); So_2 = So_1 * exp(-ho_2 * L_2); Sd_1 = exp(-hd_1 * L_1); Sd_2 = Sd_1 * exp(-hd_2 * L_2); E_c = (1 - Sc_1) / hc_1 + (Sc_1 - Sc_2) / hc_2 + Sc_2 / hc_3; E_o = (1 - So_1) / ho_1 + (So_1 - So_2) / ho_2 + So_2 / ho_3; E_d = (1 - Sd_1) / hd_1 + (Sd_1 - Sd_2) / hd_2 + Sd_2 / hd_3; G_o = E_o - E_c; G_d = E_d - E_c; Bias = (G_o - G_d) / G_d * 100
Try this function
Implementations
Excel
Excel disease-specific hazard ratio from named trial rates
With the overall ratio in a cell named OverallHR, the background rate in BgRateTrial and the disease-specific rate in DisRate, the formula returns a cell named DiseaseHR. A blank or zero DisRate returns #DIV/0!. A blank BgRateTrial is read as 0 and returns OverallHR with no warning.
=(OverallHR*(BgRateTrial+DisRate)-BgRateTrial)/DisRate
Assumptions
Treatment acts only on disease-specific mortality
Alarid-Escudero and Kuntz assume the average background mortality rate is the same in both arms and that only the disease-specific rate is affected by the intervention. A treatment that also lowers other causes of death breaks this assumption, and the formula then attributes the whole reduction to the disease.
Life-table rates represent other-cause mortality in the trial
The authors assume mortality in the trial population from causes other than the disease equals the expected mortality in the general population with the same demographic characteristics, and that disease-specific causes of death in the life tables are negligible or subtracted out. HE-FM-ACM-003 gives one way to subtract them.
A disease-specific rate above zero and a ratio that is not negative
The rate mu_dis must be above zero, because a zero rate returns #DIV/0! in Excel. dsHR is negative when oHR is below mu_bg / (mu_bg + mu_dis) (derived, grid of 49,200 cases), which means the reported fall in all-cause mortality is larger than removing every disease death could produce. Such inputs do not fit the additive split, and a negative ratio is not used.
Worked examples
Overall hazard ratio of 0.80 from step 5 of the article
The article's illustrative population, with a background rate of 0.020203 and an excess of 0.050 treated as disease-specific. An all-cause hazard ratio of 0.80 implies a disease-specific ratio of 0.719188, shown in the article as 0.7192.
oHR = 0.80; mu_bg = 0.020203; mu_dis = 0.050; dsHR = 0.719188
Overall hazard ratio of 1 as a limiting case
Illustrative limiting case with the rates of the article's population. A trial that shows no all-cause effect implies no disease-specific effect, so dsHR is 1 at any rates (derived). The case checks an implementation.
oHR = 1; mu_bg = 0.020203; mu_dis = 0.050; dsHR = 1
No background mortality as a limiting case
Illustrative limiting case. With a background rate of zero every death is a disease death, and the two hazard ratios coincide (derived). The case checks an implementation.
oHR = 0.80; mu_bg = 0; mu_dis = 0.050; dsHR = 0.8
Older trial population where background deaths outnumber disease deaths
Illustrative inputs. With a background rate of 0.06 and a disease-specific rate of 0.02, a modest overall hazard ratio of 0.90 implies a disease-specific ratio of 0.6, since three-quarters of deaths cannot respond to treatment.
oHR = 0.90; mu_bg = 0.06; mu_dis = 0.02; dsHR = 0.6
Common errors
Control-arm all-cause rate used as the disease-specific rate
Leaving out the subtraction of the background rate keeps other-cause deaths in mu_dis. With the article's inputs, entering 0.070203 in place of 0.050 gives 0.7424 against 0.7192, a smaller modelled effect on disease deaths.
Later-age background rate used for a trial average
The rate mu_bg is the average during the trial, not the rate at the age being modelled. With the article's inputs, entering the age 85 rate of 0.105361 with the same overall ratio gives 0.3786 against 0.7192, which more than doubles the modelled fall in disease mortality, 0.6214 against 0.2808 (computed here).
Negative ratio carried into a model
With an illustrative oHR of 0.50, mu_bg of 0.04 and mu_dis of 0.01 the formula returns minus 1.5, which would give a negative disease hazard. The reported effect cannot come from disease deaths alone, so the inputs or the assumption that treatment leaves other causes unchanged need review.
All-cause hazard ratio kept for life in place of the disease-specific ratio
In step 5 of the article the all-cause route cuts the hazard at age 85 by 0.031072 a year against 0.014040 on the disease-specific route, because it also reduces unrelated deaths. Alarid-Escudero and Kuntz report a bias of 28% in life-expectancy gains for their base case.
Sources
Alarid-Escudero and Kuntz on the disease-specific hazard ratio
Alarid-Escudero F, Kuntz KM. Potential bias associated with modeling the effectiveness of healthcare interventions in reducing mortality using an overall hazard ratio. Author manuscript, PMC7024667 (full text read). Published as PharmacoEconomics. 2020;38(3):285-296. doi:10.1007/s40273-019-00859-5 (not seen). Section 2.1 (Definition of terms and bias) gives Equations 1 to 4, with the background rate the same in both arms and only the disease-specific rate affected. Section 2.2 (Estimation of dsHR from aggregated data) takes the average background rate from life tables, derives the disease-specific rate from the control arm by subtracting the background rate, and gives Equation 6 and the more general Equation 7. The abstract reports a bias of 28% for the base case.
Benaglia and colleagues on a constant effect on the targeted cause of death
Benaglia T, Jackson CH, Sharples LD. Survival extrapolation in the presence of cause specific hazards. Statistics in Medicine. 2015;34(5):796-811. The abstract notes that earlier work assumed a constant additive or multiplicative effect on all-cause hazards for study patients relative to the general population, and says a constant effect on the hazard for the specific cause of death targeted by the treatments may be more plausible.
Canonical Identity
Stable URI · Machine-readable · Resolvable · CC BY 4.0
