Extracts predicted survival probabilities from survival model fitted by CoxBoost, providing an interface as required by pmpec
.
# S3 method for CoxBoost
predictProb(object, response, x, times, complexity, …)
a fitted model of class CoxBoost
.
survival object (with Surv(time, status)
, where time is an n
-vector of censored survival times and status an n
-vector containing survival status, coded with 0 and 1.
n*p
matrix of covariates.
vector of evaluation time points.
complexity value.
additional arguments, currently not used.
Matrix with probabilities for each evaluation time point in times
(columns) and each new observation (rows).