MultiHPD: Bayesian HPD regions for a series of MCMC chains
Description
Estimation of the highest posterior density regions for each variable of a
simulated Markov chain. This function uses the hdr() function
included in the hdrcde package. An HPD region may be a union of
several intervals.
Data frame containing the output of the MCMC algorithm.
position
Numeric vector containing the position of the column
corresponding to the MCMC chains of interest.
level
Probability corresponding to the level of confidence.
roundingOfValue
Integer indicating the number of decimal places.
Value
Returns a matrix of values containing the level of confidence
and the endpoints of each interval for each variable of the MCMC chain.
The name of the resulting rows are the positions of the corresponding
columns in the CSV file. The result is given in calendar years (BC/AD).
Details
Highest posterior density function region using the function
hdr() from the hdrcd package
References
Hyndman, R.J. (1996) Computing and graphing highest density regions.
American Statistician, 50, 120-126.