Prediction method for coxtrans objects.
Arguments
- object
An object of class
coxtrans.- newdata
Optional new data for making predictions. If omitted, predictions are made using the data used for fitting the model.
- newgroup
Optional new group for making predictions. If omitted, predictions are made using the groups from the original data.
- type
The type of prediction to perform. Options include:
"lp"The linear predictor.
"risk"The risk score \(\exp(\text{lp})\).
- ...
Additional arguments (unused).