drop_burnin: Drop Burn-In

View source: R/ClusterModeling_modelfunctions.R

drop_burninR Documentation

Drop Burn-In

Description

drop_burnin() removes the burn-in from the Markov Chain Monte Carlo (MCMC) draws.

Usage

drop_burnin(model, burn_in)

Arguments

model

A list of MCMC draws from a model fit with fit_model().

burn_in

An integer number of starting iterations to drop from each MCMC chain.

Value

A list of data frames of MCMC draws with burn-in dropped.

Examples

model <- drop_burnin(model = example_model_1chain, burn_in = 25)
plot_trace(variable = "mu[1,2]", model = example_model_1chain)

model <- drop_burnin(model = example_model_2chains, burn_in = 25)
plot_trace(variable = "mu[1,2]", model = example_model_2chains)


handwriter documentation built on Oct. 13, 2023, 5:10 p.m.