View source: R/bmult_S3methods.R
| plot.summary.bmult | R Documentation |
Plots the posterior estimates from the unconstrained multi- or binomial model.
## S3 method for class 'summary.bmult' plot( x, main = NULL, xlab = NULL, ylab = NULL, xlim = NULL, ylim = NULL, panel.first = NULL, ... )
x |
A |
main |
|
xlab |
|
ylab |
|
xlim, ylim |
numeric vectors of length 2, giving the x and y coordinates ranges. |
panel.first |
|
... |
additional arguments passed to |
Invisibly returns a data.frame with the plotted estimates.
# data
x <- c(3, 4, 10, 11, 7, 30)
# priors
a <- c(1, 1, 1, 1, 1, 1)
# restricted hypothesis
factor_levels <- c('theta1', 'theta2', 'theta3', 'theta4', 'theta5',
'theta6')
Hr <- c('theta1', '<', 'theta2', '&', 'theta3', '=',
'theta4', ',', 'theta5', '<', 'theta6')
output_total <- mult_bf_informed(x, Hr, a, factor_levels, seed=2020,
niter=1e3, bf_type = "BFer")
plot(summary(output_total))
# data for a big Bayes factor
x <- c(3, 4, 10, 11, 7, 30) * 1000
output_total <- mult_bf_informed(x, Hr, a, factor_levels, seed=2020,
niter=1e3, bf_type = "BFre")
plot(summary(output_total))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.