Based on a specified survival function and potential future accrual, compute for each month in the future the number of expected events reached by then.
predictEvents(time, event, St, accrual, future.units = 50)
A data.frame
with the months and corresponding expected events.
Event times, censored or observed, in months.
Censoring indicator, 1 for event, 0 for censored.
Function that specifies the survival function to be used.
NULL
if trial is fully accrued. For potential future accural, see example in hybrid_Exponential
of how to specify it.
Number of future months to compute prediction for.
Kaspar Rufibach (maintainer)
kaspar.rufibach@roche.com
Fang, L., Zheng, S. (2011). A hybrid approach to predicting events in clinical trials with time-to-event outcomes. Contemp. Clin. Trials, 32, 755--759.
Goodman, M.S., Li, Y., Tiwari, R.C. (2011). Detecting multiple change points in piecewise constant hazard functions. J. Appl. Stat, 38(11), 2523--2532.