predictProb.coxph {peperr} | R Documentation |
Extract predicted survival probabilities from a coxph object
Description
Extracts predicted survival probabilities for survival models fitted by Cox proportional hazards model, providing an interface as required by pmpec
.
Usage
## S3 method for class 'coxph'
predictProb(object, response, x, times, ...)
Arguments
object |
a fitted model of class |
response |
survival object (with |
x |
|
times |
vector of evaluation time points. |
... |
additional arguments, currently not used. |
Value
Matrix with probabilities for each evaluation time point in times
(columns) and each new observation (rows).
[Package peperr version 1.5 Index]