Calculate the Highest Probability Density of an MCMC trace that has its burn-in removed
a numeric vector of parameter estimates obtained from an MCMC run. Must have its burn-in removed
the proportion of numbers within the interval. For example, use 0.95 for a 95 percentage interval
a numeric vector, with at index 1 the lower boundary of the interval, and at index 2 the upper boundary of the interval
The original Java version of the algorithm was from J. Heled, ported to R and adapted by Richèl J.C. Bilderbeek
The Java code that inspired this function can be found here:
https://github.com/beast-dev/beast-mcmc/blob/98705c59db65e4f406a420bbade949aeecfe05d0/src/dr/stats/DiscreteStatistics.java#L317 # nolint URLs can be long
1 2 3 4 5 6 7 8 9 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.