Description Usage Arguments Value Examples
collects a parameter from an mcmc objects.
1 | grabFromSamples(samples, pattern, name = pattern)
|
samples |
the mcmc sample to collect samples from |
pattern |
A naming pattern to be extracted from the mcmc object, or a vector of such names |
name |
A name or set of names that |
if pattern is a single string, returns a vector. Otherwise, returns a tibble of tectors
1 2 | grabFromSamples(samples, 'muPrior') # returns vector
grabFromSamples(samples, c('muPrior', 'tauPrior')) # returns tibble
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.