View source: R/out_chain.management.R
select.chains | R Documentation |
This function subsets fitted evorates model to specific chains.
select.chains(fit, chains, simplify = TRUE)
fit |
An object of class " |
chains |
A character or numeric vector specifying which chains to select. Notably, |
simplify |
|
An object of class "evorates_fit
". All previously-existing param_block arrays stored
in fit
will be included.
Other chain management:
combine.chains()
,
exclude.warmup()
,
thin.chains()
#get whale/dolphin evorates fit
data("cet_fit")
#three ways to get the second and first chain
fit <- select.chains(cet_fit, c('chain 1','chain 2'))
fit <- select.chains(cet_fit, c(1,2))
fit <- select.chains(cet_fit, -c(3,4))
#note handling of NAs
fit <- select.chains(cet_fit, c('chain 1', NA))
fit <- select.chains(cet_fit, c('chain 1', 'chain 5'))
fit <- select.chains(cet_fit, c(1,5))
#here's what happens when you do vs. don't simplify the result
select.chains(cet_fit, 1)$means; select.chains(cet_fit, 1, simplify = FALSE)$means
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.