predictEvents {eventTrack}R Documentation

Compute timepoint when a certain number of events in a time-to-event study is reached

Description

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.

Usage

predictEvents(time, event, St, accrual, future.units = 50)

Arguments

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

NULL if trial is fully accrued. For potential future accural, see example in hybrid_Exponential of how to specify it.

future.units

Number of future months to compute prediction for.

Value

A data.frame with the months and corresponding expected events.

Author(s)

Kaspar Rufibach (maintainer)
kaspar.rufibach@roche.com

References

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.

Examples

# see vignette

[Package eventTrack version 1.0.3 Index]