add_burnin_thin: Add (extra) burnin and thin to angmcmc object after original...

View source: R/all_postprodn_fns.R

add_burnin_thinR Documentation

Add (extra) burnin and thin to angmcmc object after original run

Description

Add (extra) burnin and thin to angmcmc object after original run

Usage

add_burnin_thin(object, burnin.prop = 0, thin = 1)

Arguments

object

angmcmc object

burnin.prop

proportion of iterations to used for burnin. Must be a be a number in [0, 1]. Default is 0.5.

thin

thining size to be used. Must be a positive integer. If thin = n, then every nth iteration is reatained in the final MCMC sample.

Examples

# first fit a vmsin mixture model
# illustration only - more iterations needed for convergence
fit.vmsin.20 <- fit_vmsinmix(tim8, ncomp = 3, n.iter =  20,
                             n.chains = 1)
lpdtrace(fit.vmsin.20)
# Now add extra burn-in
fit.vmsin.20.burn <- add_burnin_thin(fit.vmsin.20, 0.3)
lpdtrace(fit.vmsin.20.burn)

c7rishi/BAMBI documentation built on March 18, 2023, 6:17 p.m.