Description Usage Arguments Value Examples
View source: R/data_aug_functions.R
summarize_chain
provides posterior summaries based off a sample from the
posterior distribution.
1 | summarize_chain(chain, digits = 3)
|
chain |
a numeric vector containing the samples from the posterior distribution. |
digits |
the number of decimal places |
a list containing the posterior mean, median, and quantile-based credible intervals calculated from the values in the chain.
1 2 | # Suppose the posterior distribution was Normal(15, 5)
posterior_chain <- rnorm(100, 15, 5); summarize_chain(posterior_chain)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.