Compute a crude Bayes factor for a point, interval, or comparison hypothesis
using approximate posterior draws recovered from a qbrms_fit.
This is deliberately simple and intended for exploratory use.
bayesfactor(
object,
hypothesis,
prior = NULL,
null = 0,
direction = "two-sided",
rope = NULL,
nsim = 4000,
verbose = TRUE
)An object of class qbrms_bayesfactor.
A qbrms_fit object.
Character string, for example "Intercept > 0", "b_x = 0", or "b_x > 0.2".
Optional prior information (unused here, kept for API compatibility).
Numeric null value for point tests (default 0).
One of "two-sided", "greater", "less" (kept for API compatibility).
Optional numeric length-2 vector c(lower, upper) to
define a ROPE for point tests.
Number of posterior draws to simulate from the fitted summary.
Logical; print progress information.