correlogram: A correlogram function.

Description Usage Arguments Examples

View source: R/mcmc_funcs.R

Description

This function plots overlapping correlograms for samples stored in a data frame.

Usage

1
correlogram(df, cols, burn = 0, ...)

Arguments

df

A data frame of samples. Rows correspond with iterations, and columns with parameters.

cols

column indices of the parameters you're interested in plotting.

burn

Number of rows you want to discard as burn in. Defaults to 0.

...

Extra arguments to be passed into stats::acf() (e.g. lag.max )

Examples

1
2
fake_samples <- data.frame(rnorm(100))
correlogram(fake_samples, 1, lag.max = 100)

tbrown122387/mmcmc documentation built on Dec. 31, 2019, 12:34 p.m.