cox.snell.beta4reg {betaBayes}R Documentation

Cox-Snell Diagnostic Plot

Description

This function provides the Cox-Snell diagnostic plot for fitting for Bayesian beta regression models.

Usage

cox.snell.beta4reg(x, ncurves = 10, CI = 0.95, PLOT = TRUE)

Arguments

x

an object obtained from the function beta4reg.

ncurves

the number of posterior draws.

CI

the level of confidence for point-wise credible intervals.

PLOT

a logical value indicating whether the Cox-Snell residuals will be plotted.

Value

The function returns the plot (if PLOT = TRUE) and a list with the following components:

tgrid

the x-axis values with length, say ngrid

Hhat

the ngrid by 1 averaged cumulative hazard values across the nsave posterior samples

Hhatlow

the ngrid by 1 lower bound cumulative hazard values

Hhatup

the ngrid by 1 upper bound cumulative hazard values

H

the ngrid by nsave cumulative hazard values

Author(s)

Haiming Zhou and Xianzheng Huang

See Also

beta4reg


[Package betaBayes version 1.0.1 Index]