Learn R Programming

E2E (version 0.1.2)

predict_pro: Generic Prediction Interface for Prognostic Models

Description

A unified S3 generic method to generate prognostic risk scores from various trained model objects. This decouples the prediction implementation from the high-level evaluation logic, facilitating extensibility.

Usage

predict_pro(object, newdata, ...)

Value

A numeric vector representing the prognostic risk score (higher values typically indicate higher risk).

Arguments

object

A trained model object with class pro_model.

newdata

A data frame containing features for prediction.

...

Additional arguments passed to specific methods.