mcmc
object
from the coda
package),
plot the bivariate region of highest marginal posterior density
for two variables, using kde2d
from MASS
to calculate
a bivariate density.HPDregionplot(x, vars = 1:2, h = c(1, 1), n = 50, lump = TRUE, prob = 0.95, xlab = NULL, ylab = NULL, ...)
mcmc
or mcmc.list
objectx
is an mcmc.list
object, lump the
chains together for plotting?contour
contourLines
).kde2d
to calculate a bivariate density, then
normalizes the plot and calculates the contour corresponding
to a contained volume of prob
of the total volume under
the surface (a two-dimensional Bayesian credible region).HPDinterval
in the package,
ellipse
package