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