HPDI | R Documentation |
HPDI - Stolen from rethinking by R. McElreath
HPDI(samples, prob = 0.89)
samples |
A vector of data-points. |
prob |
A percentile interval. |
The higest posterior density interval.
set.seed(1)
RS = rpois(100, 5)
HPDI(RS, 0.9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.