Generic function for extracting predicted survival probabilities
Description
Generic function for extraction of predicted survival probabilities from a fitted survival model conforming to the interface required by pmpec
.
Usage
1  predictProb(object, response, x, ...)

Arguments
object 
a fitted survival model. 
response 
Either a survival object (with 
x 

... 
additional arguments, for example model complexity or, in case of survival response, argument 
Details
pmpec
requires a predictProb.class
function for each model fit of class class
. It extracts the predicted probability of survival from this model.
See existing predictProb
functions, at the time predictProb.CoxBoost
, predictProb.coxph
and predictProb.survfit
.
If desired predictProb
function for class class
is not available in peperr, but implemented in package pec as predictSurvProb.class
, it can easily be transformed as predictProb
method.
Value
Matrix with predicted probabilities for each evaluation time point in times
(columns) and each new observation (rows).