get_cox_assumptions | R Documentation |
Checks the normality and proportional hazard assumption for
a CoxPH model. Technically, the normality assumption is tested with
Shapiro-wil test, the proportionality by cox.zph
.
get_cox_assumptions(
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. |
... |
extra arguments passed to |
a data frame with the normality testing results and the proportional hazard assumption testing for the model variables and the global model.
Grambsch, P. M. & Therneau, T. M. Proportional Hazards Tests and Diagnostics Based on Weighted Residuals. Biometrika 81, 515 (1994).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.