hpd {goweragreement} | R Documentation |
Compute a highest posterior density (HPD) interval.
hpd(x, alpha = 0.05)
x |
the posterior sample. |
alpha |
the desired significance level. |
This function uses a given posterior sample to compute an HPD interval at a given significance level.
A 2-vector containing the lower endpoint and the upper endpoint, respectively.