
Last chance! 50% off unlimited learning
Sale ends in
Bayesian one-way analysis of variance.
bf_oneway_anova(data, x, y, bf.prior = 0.707, caption = NULL,
output = "caption", k = 2, ...)
a data frame containing data for all factors in the formula
The grouping variable from the dataframe data
.
The response (a.k.a. outcome or dependent) variable from the
dataframe data
.
A number between 0.5 and 2 (default 0.707
), the prior width
to use in calculating Bayes factors.
The text for the plot caption.
Can either be "caption"
(which will contain text for evidence
in favor of null) or "results"
(which will return the dataframe with
results).
Number of digits after decimal point (should be an integer)
(Default: k = 2
).
Additional arguments.
# NOT RUN {
# to get caption (default)
bf_oneway_anova(
data = iris,
x = Species,
y = Sepal.Length,
bf.prior = 0.8
)
# to get results dataframe
bf_oneway_anova(
data = iris,
x = Species,
y = Sepal.Length,
bf.prior = 0.8,
output = "results"
)
# }
Run the code above in your browser using DataLab