Learn R Programming

ggmcmc (version 1.5.1.1)

ggs_geweke: Dotplot of the Geweke diagnostic, the standard Z-score

Description

Dotplot of Geweke diagnostic.

Usage

ggs_geweke(
  D,
  family = NA,
  frac1 = 0.1,
  frac2 = 0.5,
  shadow_limit = TRUE,
  greek = FALSE,
  plot = TRUE
)

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[1], beta[2], etc).

frac1

Numeric, proportion of the first part of the chains selected. Defaults to 0.1.

frac2

Numeric, proportion of the last part of the chains selected. Defaults to 0.5.

shadow_limit,

logical. When TRUE (the default), a shadowed area between -2 and +2 is drawn.

greek

Logical value indicating whether parameter labels have to be parsed to get Greek letters. Defaults to false.

plot

Logical value indicating whether the plot must be returned (the default) or a tidy dataframe with the results of the Geweke diagnostics per Parameter and Chain.

Value

A ggplot object, or a tidy data frame.

References

Fern<U+00E1>ndez-i-Mar<U+00ED>n, Xavier (2016) ggmcmc: Analysis of MCMC Samples and Bayesian Inference. Journal of Statistical Software, 70(9), 1-20. doi:10.18637/jss.v070.i09

Geweke, J. Evaluating the accuracy of sampling-based approaches to calculating posterior moments. In _Bayesian Statistics 4_ (ed JM Bernardo, JO Berger, AP Dawid and AFM Smith). Clarendon Press, Oxford, UK.

Examples

Run this code
# NOT RUN {
data(linear)
ggs_geweke(ggs(s))
# }

Run the code above in your browser using DataLab