Learn R Programming

BayesianFROC (version 0.2.1)

check_rhat: Diagnosis of MCMC sampling

Description

This function evaluate \(R\) hat statistics for any fitted model object of class stanfit.

Usage

check_rhat(StanS4class)

Arguments

StanS4class

An S4 object of class stanfitExtended which is an inherited class from the S4 class stanfit. This R object can be passed to the DrawCurves(), ppp() and ... etc

Value

Logical, that is TRUE or FALSE. If model converges then TRUE, and if not FALSE.

Details

It evaluate whether or not r hat statistics are all near 1.

References

Gelman A. \& Rubin, D.B. (1992). Inference from Iterative Simulation Using Multiple Sequences, Statistical Science, Volume 7, Number 4, 457-472.