Plot Posterior Densities and Summaries
# S3 method for rmsb
plot(
x,
which = NULL,
nrow = NULL,
ncol = NULL,
prob = 0.95,
bivar = FALSE,
bivarmethod = c("ellipse", "kernel"),
...
)
an rms
Bayesian fit object
names of parameters to plot, defaulting to all non-intercepts. Can instead be a vector of integers.
number of rows of plots
number of columns of plots
probability for HPD interval
set to TRUE
to plot bivariate density contours instead of univariate results (ignored if the number of parameters plotted is not exactly two)
passed as method
argument to pdensityContour
passed to pdensityContour
ggplot2
object
For an rms
Bayesian fit object, plots posterior densities for selected parameters along with posterior mode, mean, median, and highest posterior density interval. If the fit was produced by stackMI
the density represents the distribution after stacking the posterior draws over imputations, and the per-imputation density is also drawn as pale curves. If exactly two parameters are being plotted and bivar=TRUE
, hightest bivariate posterior density contrours are plotted instead, for a variety of prob
values including the one specified, using