cumincCox
from the package compRisk
.
The function predictEventProb is a generic function that means it invokes
specifically designed functions depending on the 'class' of the first argument.predictEventProb(object, newdata, times, cause, ...)
## S3 method for class 'CauseSpecificCox':
predictEventProb(object, newdata, times, cause, ...)
## S3 method for class 'riskRegression':
predictEventProb(object, newdata, times, cause, ...)
## S3 method for class 'FGR':
predictEventProb(object, newdata, times, cause, ...)
## S3 method for class 'prodlim':
predictEventProb(object, newdata, times, cause, ...)
NROW(newdata)
and as many columns
as length(times)
. Each entry should be a probability and in
rows the values should be increasing.predictSurvProb
.predictSurvProb
.