BayesFactor
model object.Extract Bayes Factors from BayesFactor
model object.
bf_extractor(
bf.object,
conf.method = "hdi",
centrality = "median",
conf.level = 0.95,
k = 2L,
top.text = NULL,
output = "dataframe",
...
)
An object from BayesFactor
package.
The type of index used for Credible Interval. Can be
"hdi"
(default), "eti"
, or "si"
(see si()
, hdi()
, eti()
functions from bayestestR
package).
The point-estimates (centrality indices) to compute.
Character (vector) or list with one or more of these options: "median"
,
"mean"
, "MAP"
or "all"
.
Confidence/Credible Interval (CI) level. Default to 0.95
(95%
).
Number of digits after decimal point (should be an integer)
(Default: k = 2L
).
Text to display on top of the Bayes Factor message. This is
mostly relevant in the context of ggstatsplot
functions.
If "expression"
, will return expression with statistical
details, while "dataframe"
will return a dataframe containing the
results.
Additional arguments passed to
parameters::model_parameters.BFBayesFactor()
.
# NOT RUN {
# setup
library(tidyBF)
set.seed(123)
# creating a `BayesFactor` object
bf_obj <-
BayesFactor::anovaBF(
formula = Sepal.Length ~ Species,
data = iris,
progress = FALSE
)
# extracting Bayes Factors in a dataframe
bf_extractor(bf_obj)
# }
Run the code above in your browser using DataLab