Description Usage Arguments Value Examples
gg_coxsnell
extracts Cox-Snell residuals from an coxph
object (which for a correct model should be a censored sample from Exp(1)) and
the cumulative hazard rate of the residuals vs. the residuals.
1 | gg_coxsnell(fit, type = c("cumu_hazard", "cdf"))
|
fit |
the result of fitting a Cox regression model, using the
|
type |
|
A ggplot
object.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.