View source: R/predictEvents.r
predictEvents | R Documentation |
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)
time |
Event times, censored or observed, in months. |
event |
Censoring indicator, 1 for event, 0 for censored. |
St |
Function that specifies the survival function to be used. |
accrual |
|
future.units |
Number of future months to compute prediction for. |
A data.frame
with the months and corresponding expected events.
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.
# see vignette
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.