mcmc.setBurnin {BTYDplus}R Documentation

(Re-)set burnin of MCMC chains.

Description

(Re-)set burnin of MCMC chains.

Usage

mcmc.setBurnin(draws, burnin)

Arguments

draws

MCMC draws as returned by *.mcmc.DrawParameters

burnin

New start index.

Value

2-element list with MCMC draws

Examples

data("groceryElog")
cbs <- elog2cbs(groceryElog)
param.draws <- pnbd.mcmc.DrawParameters(cbs,
  mcmc = 100, burnin = 50, thin = 10, chains = 1) # short MCMC to run demo fast
param.draws.stable <- mcmc.setBurnin(param.draws, burnin = 80)

[Package BTYDplus version 1.2.0 Index]