Survival Analysis
Estimate the required sample size for a two-group survival study with exponential survival, uniform accrual, and exponential loss to follow-up. The calculation follows the STT2 approach documented in, based on the Lakatos and Lan (1992) sample-size formulation for the log-rank statistic. Runs entirely in your browser.
This calculator implements the two-group exponential-survival sample-size method corresponding to STT2 procedure: Test based on exponential survival, accrual period, dropouts. The method assumes exponential event times, uniform accrual over the specified accrual period, and exponential loss to follow-up with a common dropout hazard.
For an exponential survival distribution, an expected survival probability S(t) at time t corresponds to the constant hazard rate
The treatment-to-control hazard ratio is then HR = λE / λC.
If a proportion W is expected to be lost by a specified loss horizon L, the common exponential dropout hazard is
For group i, with event hazard λi, dropout hazard d, accrual period T0, and total study follow-up T, the expected proportion experiencing the event is
This averages the event probability over uniformly distributed entry times while accounting for the competing possibility of loss to follow-up.
For equal allocation, the required number in each group is calculated as
Here s = 2 for a two-sided test and s = 1 for a one-sided test. The reported enrollment target is rounded up to the next whole patient per group.
The corresponding approximate total number of events is
The event requirement depends on the significance level, power, and hazard ratio; accrual and loss to follow-up determine how many patients are needed to generate that event information.
Lakatos, E. & Lan, K.K.G. (1992). A comparison of sample size methods for the logrank statistic. Statistics in Medicine, 11, 179–191.
Elashoff, J.D. (2007). Advisor Version 7.0 User's Guide. Statistical Solutions Ltd. The STT2 procedure is documented as the exponential-survival method allowing an accrual period and exponential dropouts.
Rubinstein, L.V., Gail, M.H., & Santner, T.J. (1981). Planning the duration of a comparative clinical trial with loss to follow-up and a period of continued observation. Journal of Chronic Diseases, 34(9–10), 469–479. doi:10.1016/0021-9681(81)90007-2.
Schoenfeld, D.A. (1983). Sample-size formula for the proportional-hazards regression model. Biometrics, 39(2), 499–503. doi:10.2307/2531021.