Description Usage Arguments Examples
Extract scaled Schoenfeld residuals by variable for a cox.zph object
1 2 | ## S3 method for class 'cox.zph'
as.data.frame(x, val = NA)
|
x |
a cox.zph object |
val |
index of variables to extract |
1 2 3 4 | library(survival)
fit <- coxph(Surv(time, status) ~ age + sex + disease, data = kidney)
fit_zph <- cox.zph(fit, transform = "identity")
zph_df <- as.data.frame(fit_zph)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.