get_cox_qc: Get the extended residual table for a CoxPH model.

View source: R/functions.R

get_cox_qcR Documentation

Get the extended residual table for a CoxPH model.

Description

Retrieves model residuals and predicted values. A wrapper around augment.

Usage

get_cox_qc(
  cox_model,
  type.predict = "lp",
  type.residuals = "martingale",
  data = NULL,
  ...
)

Arguments

cox_model

a CoxpPH model or a coxex object.

type.predict

type of the prediction, 'lp', linear predictor score by default. See: predict.coxph for details.

type.residuals

type of the residuals, 'martingale' by default. See: residuals.coxph for details.

data

the data frame used for the model construction. Ignored, if coxex object provided.

...

additional arguments passed to augment.

Value

a data frame with the predicted values, residuals and expected normal values for the residuals.

References

  • Therneau, T. M. & Grambsch, P. M. Modeling Survival Data: Extending the Cox Model. (Springer Verlag, 2000).


PiotrTymoszuk/coxExtensions documentation built on Feb. 6, 2024, 10:58 p.m.