posterior_plot {BFF} | R Documentation |
Plot Prior and Posterior Distribution
Description
Creates a prior and posterior plot of an BFF object. If no specific omega was set when fitting the model, the omega resulting in maximum BF against the null hypothesis is selected.
Usage
posterior_plot(x, prior = FALSE, plot = TRUE, ...)
Arguments
x |
a BFF object |
prior |
whether prior distribution should be added to the figure |
plot |
whether plot should be generated.
Default to |
... |
additional arguments to the plotting function. These include:
|
Value
either a ggplot2 object if plot = TRUE
or a data.frame
with prior and posterior densities if plot = FALSE
See Also
[z_test_BFF()], [t_test_BFF()], [chi2_test_BFF()], [f_test_BFF()]