autoplot.CHR: Plot of CHR as a function of the survival function.

View source: R/CHR.R

autoplot.CHRR Documentation

Plot of CHR as a function of the survival function.

Description

Plot of CHR as a function of the survival function

Usage

## S3 method for class 'CHR'
autoplot(x, ...)

Arguments

x

an object of class CHR.

...

further arguments for ggplot2.

Details

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?

Value

plot of CHR as a function of the survival function.

Author(s)

Jeppe E. H. Madsen <jeppe.ekstrand.halkjaer@gmail.com>

References

Chen, Min-Chi & Bandeen-Roche, Karen. (2005). A Diagnostic for Association in Bivariate Survival Models. Lifetime data analysis. 11. 245-64.

See Also

CHR logLikSort

Examples

library(survival)
library(ggplot2)
data("diabetic")
obj <- CHR(Surv(time,status) ~ cluster(id), data = diabetic)
autoplot(obj)

Jeepen/biSurv documentation built on Sept. 30, 2023, 3:55 a.m.