Functions & Formulae

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

Parameter uncertainty in a constant hazard carried through to expected mean survival

pu(mu, s) = (k, theta, L_det, L_bar, gap)

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.

  • Expected mean survival under a gamma-distributed constant hazard from a reported mean and standard error

    k = mu^2 / s^2; theta = s^2 / mu; L_det = 1 / mu; L_bar = 1 / ((k - 1) * theta); gap = L_bar - L_det

    Fits a gamma distribution to the reported mean and standard error of a constant hazard, as the first two parts of HE-CF-EV-001 do, and averages the mean survival time 1 / h over that distribution. The mean time at a known hazard, L_det, takes the form of E_T in HE-FM-BTH-003, and the reciprocal of a gamma variable has an inverse-gamma distribution whose mean gives L_bar, which under the fit equals mu divided by (mu squared minus s squared) (derived). Because 1 / h is convex in the hazard, L_bar exceeds L_det for any s above zero and below mu (derived), so a run at the mean input understates expected survival by gap, as in the article's worked example. L_bar also equals the integral over all time of the expected survival S_bar of HE-FM-EV-003, whose scale s is theta in this record (derived, checked here by quadrature on a 49-point grid). The second-order form HE-FM-EV-002 gives only the first term of the gap, s squared over mu cubed, and falls short of L_bar by a share (s / mu)^4 (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/parameter-uncertainty/formulae