View source: R/out_chain.management.R
exclude.warmup | R Documentation |
This function gets rid of an arbitrary number of iterations at the beginning of all chains from the output
of the function fit.evorates
.
exclude.warmup(
fit,
warmup = fit$sampler.control$warmup,
sampler = TRUE,
simplify = TRUE
)
fit |
An object of class " |
warmup |
the number of iterations to be excluded, counting from the 1st iteration, even if it isn't
stored in |
sampler |
TRUE or FALSE value: should the iterations be excluded from the |
Keep in mind warmup
counts form the first iteration. For example, if fit
has 2000
iterations with the first 1000 as warmup, you would set warmup
to 1500 to keep the last 500
iterations.
an object of class "evorates_fit
". All previously-existing elements in fit
will be
included.
Other chain management:
combine.chains()
,
select.chains()
,
thin.chains()
#requires example fitted model object
#exclude warmup iterations from sampler
exclude.warmup(example.fit)
#exclude some non-warmup iterations
exclude.warmup(example.fit,1100)
#exclude some non-warmup iterations, but keep in sampler.params
exclude.warmup(example.fit,1100,F)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.