Learn R Programming

fastml (version 0.7.7)

predict_survival: Predict survival probabilities from a survival model

Description

Predict survival probabilities from a survival model

Usage

predict_survival(fit, newdata, times, ...)

# S3 method for fastml_native_survival predict_survival(fit, newdata, times, ...)

# S3 method for workflow predict_survival(fit, newdata, times, ...)

# S3 method for default predict_survival(fit, newdata, times, ...)

Value

A numeric matrix with one row per observation and one column per time.

Arguments

fit

A fitted survival model.

newdata

A data frame of predictors for which to compute survival curves.

times

Numeric vector of evaluation times.

...

Additional arguments passed to methods.