View source: R/CredibleInterval.R
CredibleInterval | R Documentation |
Computes the shortest credible interval of the output of the MCMC algorithm for a single parameter
CredibleInterval(a_chain, level = 0.95, roundingOfValue = 0)
a_chain |
Numeric vector containing the output of the MCMC algorithm for the parameter. |
level |
Probability corresponding to the level of confidence used for the credible interval, default = 0.95. |
roundingOfValue |
Integer indicating the number of decimal places to be used, default = 0. |
A (100 * level)\ elements of the sample outside the interval. The (100 * level)\
A named vector of values containing the confidence level and the endpoints of the shortest credible interval in calendar years (BC/AD).
data(Events); attach(Events) CredibleInterval(Event.1) CredibleInterval(Event.12, 0.50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.