coda_rhat: Create Rhat diagnostic graphic

Description Usage Arguments Value Author(s) See Also Examples

Description

coda_rhat creates a graphic of the potential scale reduction factor (Rhat)

Usage

1
coda_rhat(rhat, thresh = 1.01, cex.labels = 0.5)

Arguments

rhat

named vector of Rhat values

thresh

threshold used to flag low Rhat values

cex.labels

scaling for parameters plotted by name

Value

Invisibly returns a vector of the Rhat values for each parameter sorted from highest (first) to lowest (last) and prints a plot of the effective sample sizes.

Author(s)

Michael Malick

See Also

gelman.diag

Examples

1
2
3
4
5
6
library(coda)
data(line)

gd <- coda::gelman.diag(line)
rhat <- gd$psrf[ , 1]
coda_rhat(rhat)

MichaelMalick/r-codatools documentation built on May 8, 2019, 9:56 a.m.