ggs_running {ggmcmc}R Documentation

Running means of the chains

Description

Running means of the chains.

Usage

ggs_running(
  D,
  family = NA,
  original_burnin = TRUE,
  original_thin = TRUE,
  greek = FALSE
)

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).

original_burnin

Logical. When TRUE (the default), start the iteration counter in the x-axis at the end of the burnin period.

original_thin

Logical. When TRUE (the default), take into account the thinning interval in the x-axis.

greek

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

Value

A ggplot object.

References

Fernández-i-Marí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

Examples

data(linear)
ggs_running(ggs(s))

[Package ggmcmc version 1.5.1.1 Index]