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 |
burn |
integer specifying number of iterations to cut off as burn-in |
thin |
integer specifying amount of thinning ( |
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