predict_hazard.glmnetcv_survival_learner: Return the fitted hazard coefficient estimate made by a...

View source: R/heuristics.R

predict_hazard.glmnetcv_survival_learnerR Documentation

Return the fitted hazard coefficient estimate made by a glmnetcv_survival_learner for each point in the features.

Description

A higher hazard coefficient estimate corresponds to a smaller predicted survival time.

Usage

## S3 method for class 'glmnetcv_survival_learner'
predict_hazard(obj, X, fit_index = NULL, ...)

Arguments

obj

The learner or grid to use for prediction.

X

The features of the data.

fit_index

The index of the fit in the path to use for prediction, defaulting to the best fit if not supplied.

...

Additional arguments (unused)

Details

Julia Equivalent: IAI.predict_hazard

IAI Compatibility

Requires IAI version 3.0 or higher.

Examples

## Not run: iai::predict_hazard(lnr, X)


iai documentation built on July 9, 2023, 5:41 p.m.