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 survregbayes.

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 Surv object using the everaged residuals

resid*

the * goes from 1 to ncurves, and each is the Surv object using the residuals obtained from each posterior draw.

St1

the n by ncurves matrix of survival functions evaluated at left endpoints of the time interval.

St2

the n by ncurves matrix of survival functions evaluated at right endpoints of the time interval.

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.

See Also

survregbayes


[Package spBayesSurv version 1.1.8 Index]