a.hpd: Highest posterior density region for a

Description Usage Arguments Details Value

Description

Find points on a grid within a 100p% highest posterior density region for the tuning parameter, a

Usage

1
a.hpd(a_grid, posterior, level = 0.95)

Arguments

a_grid

A vector of (preferably evenly spaced) 'a' values (between 0 and 1).

posterior

The values of the posterior density at each point in a_grid.

level

Size of the highest posterior density region.

Details

The 100p% highest posterior density region for 'a' is the subset of the interval between 0 and 1, which contains 100p% of the probability.

Value

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.


funphylocom documentation built on May 2, 2019, 5 p.m.