Description Usage Arguments See Also Examples
Compute the highest density posterior interval from a (unimodal) sample of points. Unless (slightly) more accurate results for unimodal distributions are deired, the hpd_mult function should be used instead as it runs faster and can handle multiple modes.
1 | hpd_uni(x, prob = 0.95, precision = 1000)
|
x |
vector of samples from some distribution |
prob |
numeric in (0, 1) the probability that the interval should be |
precision |
numeric, determines how accurate the resulting hpd should be, larger is more precise |
hpd_mult
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.