Find points on a grid within a 100
posterior density region for the tuning parameter, a
a.hpd(a_grid, posterior, level = 0.95)
A vector of (preferably evenly spaced) 'a' values (between 0 and 1).
The values of the posterior density at
each point in
Size of the highest posterior density region.
p% highest posterior density region for 'a'
is the subset of the interval between 0 and 1, which
p% of the probability.
A data frame with two columns: the values of the grid within the hpd region and the value of the posterior at each point in this grid.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.