get_cox_qc | R Documentation |
Retrieves model residuals and predicted values.
A wrapper around augment
.
get_cox_qc(
cox_model,
type.predict = "lp",
type.residuals = "martingale",
data = NULL,
...
)
cox_model |
a CoxpPH model or a coxex object. |
type.predict |
type of the prediction, 'lp', linear predictor score by
default. See: |
type.residuals |
type of the residuals, 'martingale' by default.
See: |
data |
the data frame used for the model construction. Ignored, if coxex object provided. |
... |
additional arguments passed to |
a data frame with the predicted values, residuals and expected normal values for the residuals.
Therneau, T. M. & Grambsch, P. M. Modeling Survival Data: Extending the Cox Model. (Springer Verlag, 2000).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.