HPDI | R Documentation |
These functions compute highest posterior density (HPDI) and percentile (PI) intervals, using samples from a posterior density or simulated outcomes.
HPDI( samples , prob=0.89 )
PI( samples , prob=0.89 )
samples |
Vector of parameter values |
prob |
interval probability mass |
Highest Posterior Density Intervals (HPDI) are calculated by HPDinterval
in the coda
package.
Percentile intervals (PI) use quantile
and assign equal mass to each tail.
Richard McElreath
HPDinterval
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.