cox.snell.survregbayes {spBayesSurv} | R Documentation |
Cox-Snell Diagnostic Plot
Description
This function provides the Cox-Snell diagnostic plot (Zhou and Hanson, 2018) for fitting for Bayesian semiparametric survival models.
Usage
cox.snell.survregbayes(x, ncurves = 10, PLOT = TRUE)
Arguments
x |
an object obtained from the function |
ncurves |
the number of posterior draws. |
PLOT |
a logical value indicating whether the estimated survival curves will be plotted. |
Value
The function returns the plot (if PLOT = TRUE
) and a list with the following components:
resid |
the |
resid* |
the |
St1 |
the |
St2 |
the |
Delta |
The status indicator: 0=right censored, 1=event at time, 2=left censored, 3=interval censored. |
Author(s)
Haiming Zhou and Timothy Hanson
References
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.