extract_survreg_components: Extract survreg Linear Predictor and Scale
Description
Computes the linear predictor (lp) and scale parameter(s) for new data
from a fitted survreg model.
Usage
extract_survreg_components(fit_obj, new_data)
Value
A list with elements lp (numeric vector) and scale
(numeric vector), or NULL on failure.
Arguments
- fit_obj
A fitted survreg object.
- new_data
A data frame with predictor variables.