Signature
G = G_prev + d / (n_e * (n_e - d)); SE_S = S * sqrt(G); s_LL = sqrt(G) / abs(log(S)); S_lo = S^exp(z * s_LL); S_hi = S^exp(-z * s_LL)
| Inputs | Definition | Unit |
|---|---|---|
G_prev | Value of G at the end of the previous interval, 0 for the first | per person |
d | Deaths in the current interval; zero or above | people |
n_e | Effective number at risk in the current interval from HE-FM-LTM-001, above d | people |
S | Survival at the end of the current interval from HE-FM-LTM-001, above 0 and below 1 for the interval limits | probability |
z | Normal quantile for the coverage wanted, 1.96 for 95% | none |
G | Sum of d / (n_e (n_e minus d)) over all intervals so far | per person |
|---|---|---|
SE_S | Greenwood's asymptotic standard error of S | probability |
s_LL | Asymptotic standard error of log(minus log S) | none |
S_lo | Lower confidence limit of S | probability |
S_hi | Upper confidence limit of S | probability |
Function
Actuarial life table function from interval counts of deaths and withdrawals
Maps the counts of a follow-up table, the number entering each fixed interval with its deaths and withdrawals, to the effective number at risk, the conditional probabilities and the running survival (HE-FM-LTM-001) and Greenwood's standard error with a log-log interval (HE-FM-LTM-002). It also runs the relation backwards, taking numbers at risk and survival read off a published curve and returning estimated events and censorings (HE-FM-LTM-003). The Computational Function HE-CF-LTM-001 runs a whole table. The product step takes the form of the Kaplan-Meier step HE-FM-ADMC-002, whose n_j is the number under observation just before an event time (HE-VR-ADMC-010); the half count of withdrawals in grouped data is what differs here. Kaplan and Meier's two bounds on the factor are the HE-FM-ADMC-002 factor with n_j set to n or to n minus w (derived). Converting a one-year interval probability to another cycle length is HE-CF-TP-002, and the rescaling HE-FM-TP-003 covers any interval length. Using a rate is HE-FM-TP-001, the trapezoid area under the yearly survival points is the LY output of HE-CF-PSM-001 with its discount rate d of 0, and reading conditional probabilities back from a survival curve is HE-CF-MKA-001. Notation follows the Life Table Method article, with n_e for its n prime and S_prev for the survival carried into the interval.
Try this function
Implementations
Excel
Greenwood standard error from named life-table cells
EffectiveAtRisk and DeathsInInterval are as in HE-FM-LTM-001, GreenwoodSumStart holds the sum carried in and SurvivalAtIntervalEnd the survival. A cell named GreenwoodSum holds
=GreenwoodSumStart+DeathsInInterval/(EffectiveAtRisk*(EffectiveAtRisk-DeathsInInterval)), and the formula shown fills SurvivalStdError. If everyone in the interval dies, GreenwoodSum returns #DIV/0!.=SurvivalAtIntervalEnd*SQRT(GreenwoodSum)
Excel
Log-log limits of actuarial survival from named cells
ZMultiplier holds 1.96 or
=NORM.S.INV(0.975); NORMSINV gives the same value in versions before Excel 2010. A cell named LogLogStdError holds the first formula, and SurvivalLowerLimit and SurvivalUpperLimit hold the second and third. Before the first death SurvivalAtIntervalEnd is 1, its logarithm is 0 and LogLogStdError returns #DIV/0!.=SQRT(GreenwoodSum)/ABS(LN(SurvivalAtIntervalEnd)); =SurvivalAtIntervalEnd^EXP(ZMultiplier*LogLogStdError); =SurvivalAtIntervalEnd^EXP(-ZMultiplier*LogLogStdError)
Assumptions
Asymptotic interval on large interval counts
Stata calls both standard errors asymptotic, and they rely on large numbers at risk. In the last rows of the kidney table only 7 and then 2 people count as at risk, so the limits there rest on the earlier rows, because those rows add no deaths and no term to the sum.
Limits defined only after the first death and before survival reaches zero
With S of 1 before any death the log-log standard error divides 0 by 0. With d equal to n_e, possible only when w is 0 and everyone dies, the Greenwood term divides by 0 and S is 0 (derived). The withdrawal conditions of HE-FM-LTM-001 carry over, including independent censoring.
Worked examples
Greenwood standard error after the first year of the kidney table
After the first year of the kidney table the standard error and the 95% limits match the 0.0455, 0.5017 and 0.6792 printed by Stata. These are historical data, used to illustrate the method only.
G_prev = 0; n_e = 116.5; d = 47; S = 0.59657; z = 1.96; G = 0.005805; SE_S = 0.0455; s_LL = 0.1475; S_lo = 0.5017; S_hi = 0.6792
Greenwood standard error after the fourth year of the kidney table
The running sum carried out of year 3 is 0.010194. After year 4 the standard error and the 95% limits match the 0.0602, 0.3225 and 0.5554 printed by Stata.
G_prev = 0.010194; n_e = 16.5; d = 2; S = 0.44232; z = 1.96; G = 0.018553; SE_S = 0.0602; s_LL = 0.167; S_lo = 0.3225; S_hi = 0.5554
Fifth year of the kidney table adds nothing to the Greenwood sum
With no deaths in year 5 the term is 0, so the sum, the standard error and the limits stay at their year 4 values, as Stata prints them, although fewer people remain at risk.
G_prev = 0.018553; n_e = 7; d = 0; S = 0.44232; z = 1.96; G = 0.018553; SE_S = 0.0602; s_LL = 0.167; S_lo = 0.3225; S_hi = 0.5554
Common errors
Symmetric limits around actuarial survival
S plus or minus 1.96 SE_S ignores the bounded scale. After year 4 of the kidney table it gives 0.3242 and 0.5604 against the log-log 0.3225 and 0.5554 (derived), and near the extremes it can give limits that are not probabilities, which is the reason Stata gives for not using it.
Greenwood sum on the number entering in place of the effective number
Using n in the term ignores the half count and understates uncertainty. After the first year of the kidney table the standard error is 0.0410 in place of 0.0455 (derived).
Reading an unchanged standard error as unchanged precision
Rows with no deaths add nothing to the sum, so the standard error stays flat after year 4 of the kidney table while the effective number falls to 7 and then 2. A flat column in the tail does not show that the estimate has become firmer; Hoyle and Henley note that the tails of Kaplan-Meier curves are often highly uncertain because few patients remain at risk.
Sources
Stata manual on Greenwood's formula and log-log limits in ltable
StataCorp. Stata Survival Analysis and Epidemiological Tables Reference Manual, Release 13. College Station, TX: Stata Press; 2013. Entry ltable. Methods and formulas, which gives Greenwood's formula for the asymptotic standard error of S_j (citing Greenwood 1926, not seen), says it is not used for the confidence intervals because it can produce intervals outside 0 and 1, and gives the asymptotic standard error of log(minus log S_j) and the limits as S_j raised to exp(plus or minus z s). Example 5, printed standard errors 0.0455, 0.0479, 0.0508 and 0.0602 and limits 0.5017 to 0.6792 and 0.3225 to 0.5554.
SAS documentation on the survival standard error in PROC LIFETEST
SAS Institute Inc. SAS/STAT 14.2 User's Guide. The LIFETEST Procedure. Cary, NC: SAS Institute Inc.; 2016. Section Details, Computational Formulas, subsection Life-Table Method, which gives the standard error of the survival estimate as the estimate times the square root of a sum over earlier intervals of q over the effective size times p.
Hoyle and Henley on uncertainty in survival curve tails
Hoyle MW, Henley W. Improved curve fits to summary survival data: application to economic evaluation of health technologies. BMC Medical Research Methodology. 2011;11:139. doi:10.1186/1471-2288-11-139. Background, which states that the tails of Kaplan-Meier curves are often highly uncertain due to small numbers of patients at risk.
Canonical Identity
Stable URI · Machine-readable · Resolvable · CC BY 4.0
