View source: R/plot.contrast.r
plot.contrast.rms | R Documentation |
Plot Bayesian Contrast Posterior Densities
## S3 method for class 'contrast.rms'
plot(
x,
bivar = FALSE,
bivarmethod = c("ellipse", "kernel"),
prob = 0.95,
which = c("both", "diff", "ind"),
nrow = NULL,
ncol = NULL,
...
)
x |
the result of |
bivar |
set to |
bivarmethod |
see |
prob |
posterior coverage probability for HPD interval or 2-d contour |
which |
applies when plotting the result of |
nrow |
for |
ncol |
likewise |
... |
unused |
If there are exactly two contrasts and bivar=TRUE
plots an elliptical or kernal (based on bivarmethod
posterior density contour with probability prob
). Otherwise plots a series of posterior densities of contrasts along with HPD intervals, posterior means, and medians. When the result being plotted comes from contrast
with fun=
specified, both the two individual estimates and their difference are plotted.
ggplot2
object
Frank Harrell
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.