trim {bhetGP}R Documentation

Trim/Thin MCMC iterations

Description

Acts on a bhetgp, bhetgp_vec, bhomgp, or bhomgp_vec object. Removes the specified number of MCMC iterations (starting at the first iteration). After these samples are removed, the remaining samples are optionally thinned.

Usage

trim(object, burn, thin)

Arguments

object

object from bhetGP, or bhomGP

burn

integer specifying number of iterations to cut off as burn-in

thin

integer specifying amount of thinning (thin = 1 keeps all iterations, thin = 2 keeps every other iteration, thin = 10 keeps every tenth iteration, etc.)

Details

The resulting object will have nmcmc equal to the previous nmcmc minus burn divided by thin. Removing burn-ins are necessary following convergence. Thinning is recommended as it can eliminate highly correlated consecutive samples. Additionally, the size of the object reduces and ensures faster prediction.

Value

object of the same class with the selected iterations removed


[Package bhetGP version 1.0 Index]