autoplot.CHR | R Documentation |
Plot of CHR as a function of the survival function
## S3 method for class 'CHR'
autoplot(x, ...)
x |
an object of class |
... |
further arguments for |
the CHR and the bivariate survival function are estimated seperately. Plotting the CHR as a function of the bivariate survival function tells us something about where in the data the dependence is strongest. Is it for small failure times (where the survival function is big), as implied by the positive stable model, or is it for late failure times as implied by the gamma frailty model?
plot of CHR as a function of the survival function.
Jeppe E. H. Madsen <jeppe.ekstrand.halkjaer@gmail.com>
Chen, Min-Chi & Bandeen-Roche, Karen. (2005). A Diagnostic for Association in Bivariate Survival Models. Lifetime data analysis. 11. 245-64.
CHR logLikSort
library(survival)
library(ggplot2)
data("diabetic")
obj <- CHR(Surv(time,status) ~ cluster(id), data = diabetic)
autoplot(obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.