Predict from a CoxGradientBoost model

# S3 method for class 'CoxGradientBoost'
predict(object, newdata, type = "lp", times = NULL, M = NULL, ...)

Arguments

object

a CoxGradientBoost object

newdata

numeric matrix or data.frame of new covariates

type

"lp" (default), "survival", or "cumhaz"

times

time grid for type != "lp"; NULL -> training event times

M

use only the first M base learners (early stopping probe); NULL -> all M (default)

...

unused

Value

type = "lp" -> numeric vector (length n_new) type = "survival" -> matrix (n_new x length(times)) type = "cumhaz" -> matrix (n_new x length(times))