plotMcmcChain: MCMC diagnostics

View source: R/stats.R

plotMcmcChainR Documentation

MCMC diagnostics

Description

Plot the trace, autocorrelation, running average and density side by side for a single chain. TODO: show dark background for burn-in in traceplot

Usage

plotMcmcChain(res.mcmc, param.name, subplots = 1:4, pe = NULL, hi = NULL)

Arguments

res.mcmc

object of class "mcmc" (not "mcmc.list"!)

param.name

parameter name in the columns of res.mcmc

subplots

vector indicating which sub-plot(s) to make (1 for trace, 2 for autocorrelation, 3 for running quantiles, 4 for density)

pe

point estimate (optional, but required if "hi" is given)

hi

half-interval (optional)

Value

nothing

Author(s)

Timothee Flutre


timflutre/rutilstimflutre documentation built on Feb. 7, 2024, 8:17 a.m.