This function provides the Cox-Snell diagnostic plot (Zhou and Hanson, 2018) for fitting for Bayesian semiparametric survival models.
cox.snell.survregbayes(x, ncurves = 10, PLOT = TRUE)The function returns the plot (if PLOT = TRUE) and a list with the following components:
the Surv object using the everaged residuals
the * goes from 1 to ncurves, and each is the Surv object using the residuals obtained from each posterior draw.
the n by ncurves matrix of survival functions evaluated at left endpoints of the time interval.
the n by ncurves matrix of survival functions evaluated at right endpoints of the time interval.
The status indicator: 0=right censored, 1=event at time, 2=left censored, 3=interval censored.
an object obtained from the function survregbayes.
the number of posterior draws.
a logical value indicating whether the estimated survival curves will be plotted.
Haiming Zhou and Timothy Hanson
Zhou, H. and Hanson, T. (2018). A unified framework for fitting Bayesian semiparametric models to arbitrarily censored survival data, including spatially-referenced data. Journal of the American Statistical Association, 113(522): 571-581.
survregbayes