predict.regsurv: Predictions for a regsurv model

View source: R/predict.R

predict.regsurvR Documentation

Predictions for a regsurv model

Description

Predictions for a regsurv model

Usage

## S3 method for class 'regsurv'
predict(
  object,
  prep,
  lambda.index,
  newdata = NULL,
  type = c("cumhazard", "surv"),
  ...
)

Arguments

object

regsurv object

prep

survprep object used to fit the regsurv model

lambda.index

lambda index for the required predictions (e.g. optimal value based on cross-validation)

newdata

if provided, this should be a matrix with untransformed time-to-event in the first column and the model.matrix for for main main predictor effects as would be provided to survprep()

type

type of prediction ("cumhazard" or "surv")

...

as for predict()

Value

prediction of the requested type


jeroenhoogland/regsurv documentation built on March 20, 2023, 3:37 a.m.