powered by
summarize_chain provides posterior summaries based off a sample from the posterior distribution.
summarize_chain
summarize_chain(chain, digits = 3)
a numeric vector containing the samples from the posterior distribution.
the number of decimal places
a list containing the posterior mean, median, and quantile-based credible intervals calculated from the values in the chain.
# NOT RUN { # Suppose the posterior distribution was Normal(15, 5) posterior_chain <- rnorm(100, 15, 5); summarize_chain(posterior_chain) # }
Run the code above in your browser using DataLab