burnAndThin: Burn and thin MCMC chain

View source: R/utils.r

burnAndThinR Documentation

Burn and thin MCMC chain

Description

Return a burned and thinned trace of the chain.

Usage

burnAndThin(trace, burn = 0, thin = 0)

Arguments

trace

either a data.frame or a list of data.frame with all variables in column, as returned by mcmcMh. Accept also an mcmc or mcmc.list object.

burn

proportion of the chain to burn.

thin

number of samples to discard per sample that is being kept

Value

an object with the same format as trace (data.frame or list of data.frame or mcmc object or mcmc.list object)

Examples

data(mcmcEpi)
burnAndThin(mcmcEpi1, burn = 100, thin = 4)

sbfnk/fitR documentation built on July 18, 2023, 3:28 p.m.