Learn R Programming

ggmcmc (version 0.3)

ggs_Rhat: Dotplot of Potential Scale Reduction Factor (Rhat)

Description

Plot a dotplot of Potential Scale Reduction Factor (Rhat), proposed by Gelman and Rubin (1992). The version from the second edition of Bayesian Data Analysis (Gelman, Carlin, Stein and Rubin) is used.

Usage

ggs_Rhat(D, family = NA)

Arguments

D
Data frame whith the simulations
family
Name of the family of parameters to plot, as given by a character vector or a regular expression. A family of parameters is considered to be any group of parameters with the same name but different numerical value between square brackets (as beta[

Value

  • A ggplot object.

Details

Notice that at least two chains are required.

Examples

Run this code
data(samples)
ggs_Rhat(ggs(S, parallel=FALSE))

Run the code above in your browser using DataLab