predict.cat_cox: Predict Linear Predictor for New Data Using a Fitted Cox...

View source: R/predict.R

predict.cat_coxR Documentation

Predict Linear Predictor for New Data Using a Fitted Cox Model

Description

This function calculates the linear predictor (LP) for new data points based on a fitted Cox proportional hazards model.

Usage

## S3 method for class 'cat_cox'
predict(object, newdata = NULL, ...)

Arguments

object

A fitted model object of class cat_cox, containing the COX fit and model details.

newdata

An optional data frame with new predictor values. If NULL, the function uses the observation data from the model's initialization object.

...

Additional arguments passed to other functions.

Value

A vector of linear predictor values for the specified new data.


catalytic documentation built on April 4, 2025, 5:51 a.m.