marginal_plot {RoBMA} | R Documentation |
Plots marginal estimates of a fitted RoBMA regression object
Description
marginal_plot
allows to visualize prior and
posterior distributions of marginal estimates of a RoBMA regression model.
Usage
marginal_plot(
x,
parameter,
conditional = FALSE,
plot_type = "base",
prior = FALSE,
output_scale = NULL,
dots_prior = NULL,
...
)
Arguments
x |
a fitted RoBMA regression object |
parameter |
regression parameter to be plotted |
conditional |
whether conditional marginal estimates should be
plotted. Defaults to |
plot_type |
whether to use a base plot |
prior |
whether prior distribution should be added to
figure. Defaults to |
output_scale |
transform the effect sizes and the meta-analytic
effect size estimate to a different scale. Defaults to |
dots_prior |
list of additional graphical arguments
to be passed to the plotting function of the prior
distribution. Supported arguments are |
... |
list of additional graphical arguments
to be passed to the plotting function. Supported arguments
are |
Value
plot.RoBMA
returns either NULL
if plot_type = "base"
or an object object of class 'ggplot2' if plot_type = "ggplot2"
.