View source: R/predictEventsUncond.r
predictEventsUncond | R Documentation |
Based on a specified survival function and future accrual, compute for each month in the future the number of expected events reached by then, based on a fixed pre-specified survival function.
predictEventsUncond(St, accrual, future.units = 50)
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
# compute date when 380 events are reached:
nevent <- 380
n <- 800
accrual.month <- 50
accrual <- rep(seq(1, 16), each = accrual.month)
rate <- log(2) / 12
St1 <- function(t0){
res <- 1 - pexp(t0, rate = rate)
return(res)
}
pred1 <- predictEventsUncond(St = St1, accrual, future.units = 25)
pred1
exactDatesFromMonths(predicted = pred1, nevent)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.