Signature
k = mu^2 / s^2; theta = s^2 / mu; L_det = 1 / mu; L_bar = 1 / ((k - 1) * theta); gap = L_bar - L_det
| Inputs | Definition | Unit |
|---|---|---|
mu | Reported mean of the uncertain constant hazard, above zero | events per person per year |
s | Standard error of the mean hazard, above zero and below mu | events per person per year |
k | Shape of the gamma distribution fitted to the hazard, above 1 for a finite result | none |
|---|---|---|
theta | Scale of the gamma distribution fitted to the hazard, so that its mean is k times theta and its variance k times theta squared | events per person per year |
L_det | Mean survival time at the mean hazard, the result of a single run at the mean input | years |
L_bar | Expected mean survival time, averaged over the gamma distribution of the hazard | years |
gap | L_bar less L_det, the expected survival that a run at the mean input leaves out | years |
Function
Parameter uncertainty in a constant hazard carried through to expected mean survival
Maps the reported mean and standard error of an uncertain constant hazard to the gamma parameters that describe its parameter uncertainty, the mean survival time at the mean hazard, the expected mean survival time over the distribution and the gap between the two, the nonlinear output in the article's worked example. The other calculations in the article are live and are not restated. The beta fit to a mean and standard error is HE-FM-BETA-003 with HE-CF-BETA-001, beta moments and the fit from counts are HE-FM-BETA-001 and HE-FM-BETA-002, and the gamma fit appears as HE-FM-BETA-004 for a utility decrement and in the chain of HE-CF-EV-001 for a hazard. The variance of incremental net benefit with its covariance term is in HE-FM-AN-004 and HE-FM-BSE-003, the probability that it is positive follows from z_INB of HE-FM-AN-004, the chance of a wrong decision is P_err of HE-FM-CEAC-003, the on-treatment probability from a baseline and a relative risk is described in HE-FM-ARR-002, and the probabilistic run is HE-FN-PSA-001. Expected event probability under the same gamma hazard is HE-FM-EV-003. Notation follows the Parameter Uncertainty article.
Try this function
Implementations
Excel
Expected mean survival under a gamma hazard from named cells
With the reported mean and standard error in cells named MeanHazard and SeHazard, the five formulas return the shape, the scale, survival at the mean, expected survival and the gap in cells named HazardShape, HazardScale, SurvivalAtMean, ExpectedSurvival and SurvivalGap. The fourth formula returns #N/A when the shape is 1 or below, where the expected value is infinite. A blank SeHazard is treated as 0 and HazardShape returns #DIV/0!, which carries into ExpectedSurvival and SurvivalGap. A blank MeanHazard gives #DIV/0! in HazardScale and SurvivalAtMean.
=MeanHazard^2/SeHazard^2; =SeHazard^2/MeanHazard; =1/MeanHazard; =IF(HazardShape>1,1/((HazardShape-1)*HazardScale),NA()); =ExpectedSurvival-SurvivalAtMean
Assumptions
Constant hazard for life in every draw of the expected survival formula
Each value of the hazard h applies unchanged for life, so survival given h is exponential with mean 1 / h, undiscounted and with no time horizon. The uncertainty is in the level of the hazard, not in its shape over time, as in HE-AS-EV-005. A finite horizon or a discount rate changes the result, as the common errors below show.
Gamma fit to a hazard standard error with shape above 1
The hazard follows a gamma distribution matched on its mean and variance, in shape and scale form (HE-AS-EV-006), and s is the standard error of the estimated hazard, the precision of the estimate. The inverse-gamma mean exists only for shape above 1 and its variance only for shape above 2 (Gelman et al. 2013). Under the fit these conditions are s below mu and s below mu divided by the square root of 2 (derived). At shape 1 or below the expected mean survival is infinite (derived). With shape above 1 and at most 2 the result is finite, but 1 / h has infinite variance, so a simulated mean of 1 / h has no finite Monte Carlo standard error (derived).
Uncertainty about one hazard shared by the whole cohort
The average is over uncertainty about one hazard shared by every patient, the parameter or second-order uncertainty that the task force separates from stochastic uncertainty, as in HE-AS-EV-007. Read as variation in the hazard between patients, the same algebra gives mean survival in a gamma-frailty population (derived).
Worked examples
Annual mortality rate of 0.10 with standard error 0.02
The article's illustrative annual mortality rate has mean 0.10 and standard error 0.02. The fit gives shape 25 and scale 0.004, mean survival at the mean rate is 10 years, and the expected value is 1 divided by 24 times 0.004, about 10.4167 years, shown as 10.42 in the article. A run at the mean input understates expected survival by about 0.42 years.
mu = 0.10; s = 0.02; k = 25; theta = 0.004; L_det = 10; L_bar = 10.4167; gap = 0.4167
More precise mortality rate with standard error 0.005
With the same illustrative mean and a standard error of 0.005 the shape rises to 400 and the gap falls to about 0.03 years. This is close to the limiting case, since the gap goes to zero as s goes to zero (derived). The inputs are illustrative.
mu = 0.10; s = 0.005; k = 400; theta = 0.00025; L_det = 10; L_bar = 10.0251; gap = 0.0251
Less precise mortality rate with standard error 0.05
With the same illustrative mean and a standard error of 0.05 the shape is 4 and the scale 0.025, and the expected mean survival is about 13.33 years. The second-order form HE-FM-EV-002 gives 12.5 years here, so the shortfall of that approximation is visible at this precision (derived). The inputs are illustrative.
mu = 0.10; s = 0.05; k = 4; theta = 0.025; L_det = 10; L_bar = 13.3333; gap = 3.3333
Very uncertain mortality rate close to the existence limit
With the same illustrative mean and a standard error of 0.08 the shape is 1.5625, still above 1, and the expected mean survival is about 27.78 years against 10 at the mean rate. The result climbs without limit as s approaches mu (derived). The shape is below 2, so a simulated mean of 1 / h would have no finite Monte Carlo standard error and the closed form is the figure to use. The inputs are illustrative.
mu = 0.10; s = 0.08; k = 1.5625; theta = 0.064; L_det = 10; L_bar = 27.7778; gap = 17.7778
Common errors
Reading the reciprocal of the mean hazard as expected survival
The value 1 / mu is mean survival at one known hazard. Used as the expected value under uncertainty it gives 10 years in the first worked example against about 10.4167, and 10 against about 13.3333 at a standard error of 0.05. Averaging sampled hazards and then taking the reciprocal returns 1 / mu within Monte Carlo error (derived); the reciprocal has to be taken in each draw before averaging, or the closed form used.
Shape used in place of shape minus 1 in expected survival
Writing 1 / (k theta) cancels the fit, because k times theta is the mean hazard, and returns L_det. In the first worked example it gives 10 years instead of about 10.4167 and a gap of zero, so all trace of the parameter uncertainty disappears (derived).
Gamma rate entered as the scale in expected survival
The article notes that some software uses the rate, the reciprocal of the scale, and that the parameterisation should be recorded. Entering the rate of 250 as theta in the first worked example gives about 0.000167 years instead of about 10.4167.
Applying the expected survival formula without its existence check
With s at or above mu the expected value is infinite (derived), yet the unguarded formula can still return a number. At a mean of 0.10 and a standard error of 0.12 the shape is about 0.6944 and 1 / ((k minus 1) theta) returns about minus 22.73 years. At a standard error of 0.10 the shape is exactly 1 and Excel returns #DIV/0!. The IF in the Excel row returns #N/A in both cases.
Adding a discount rate to the reciprocal of expected survival
With a continuous discount rate rho, discounted life expectancy at a known hazard is 1 / (h + rho), the form used in HE-FM-PSM-004, and its average over the gamma has no such simple form. In the first worked example at an illustrative rho of 0.035 the average by quadrature is about 7.571 years, while 1 / (1 / L_bar + rho) gives about 7.634 and 1 / (mu + rho) about 7.407 (derived). L_bar applies only to undiscounted survival.
Quoting the lifetime survival gap for a model with a finite horizon
L_bar and gap run over all time. Over a 20-year horizon in the first worked example the integral of S_bar from HE-FM-EV-003, with its scale s set to theta, is about 8.774 years against about 8.647 at the mean hazard, a gap of about 0.127 years and not 0.4167 (derived, by quadrature). A model with a horizon needs that average computed over the same horizon.
Sources
Inverse-gamma mean in Bayesian Data Analysis for expected survival
Gelman A, Carlin JB, Stern HS, Dunson DB, Vehtari A, Rubin DB. Bayesian Data Analysis. 3rd edition. Boca Raton: Chapman & Hall/CRC; 2013. Appendix A, Table A.1, pp. 578-579, gives the inverse-gamma distribution with shape alpha and scale beta, with mean beta/(alpha minus 1) for alpha above 1 and variance beta squared/((alpha minus 1) squared (alpha minus 2)) for alpha above 2, and the gamma distribution with shape alpha and inverse scale beta, with mean alpha/beta. Section A.1, p. 583, states that if the reciprocal of a variable has a gamma distribution with parameters alpha, beta, the variable has the inverse-gamma distribution. Textbook result. Setting that beta to 1 divided by theta of this record gives L_bar, and k and theta come from matching the gamma mean and variance (derived).
Task force on standard error versus standard deviation and right-skew distributions
Briggs AH, Weinstein MC, Fenwick EA, Karnon J, Sculpher MJ, Paltiel AD. Model parameter estimation and uncertainty analysis: a report of the ISPOR-SMDM Modeling Good Research Practices Task Force Working Group-6. Medical Decision Making. 2012;32(5):722-732. doi:10.1177/0272989X12458348. Page 724 likens the distinction between stochastic and parameter uncertainty to that between a standard deviation and a standard error. Page 726 states that the assumptions for specifying a distribution should follow standard statistical methods, with gamma or log normal for right skew parameters.
HEMA Report 2 on evaluating a model at mean inputs
Steuten L, Thavorn K, Cipriano LE, Guertin JR, McQueen B, Schmidler G, Sullivan S, Wailoo A, Sculpher M. Methods to analyze and present uncertainty in economic evaluation to support HTA decisions. HEMA Report 2. Health Economics Methods Advisory; 2026. Section 4.3, p. 28, states that decision models are non-linear in their inputs and that evaluating the model at the mean value of each input does not necessarily produce the expected costs and health effects.
Canonical Identity
Stable URI · Machine-readable · Resolvable · CC BY 4.0
