anovaplot {bayesanova}R Documentation

anovaplot

Description

Plots the results of a Bayesian ANOVA

Usage

anovaplot(dataframe, type="rope", sd="sd", ci=0.95)

Arguments

dataframe

A dataframe which is the result of a Bayesian ANOVA

type

Selects the type of plot which should be produced. The default is "rope", which produces a posterior region of practical equivalence (ROPE) analysis and posterior distributions for the three effect sizes of interest. Other options are to produce posteriors for each parameter via type=="pars", or to produce posteriors for the difference of means and variances via type=="diff".

sd

Selects if the results include posterior draws for the standard deviation (default) or the variance. sd="sd" is the default. sd="var" assumes that the dataframe includes posterior draws of the variances of each group.

ci

The credible level used for producing credible intervals. The default is ci=0.95.

Value

Produces plots of the results depending on which type is selected. In the default setting, the produced plots include horizontal colored lines which visualize the standard regions of practical equivalence (ROPEs) for the effect size of Cohen. In particular, the ROPE of no effect, \delta \in (-0.2,0.2) is shown as a red horizontal line, the ROPE of a small effect, |\delta| \in [0.2,0.5) is shown as an orange horizontal line, the ROPE of a medium effect, |\delta| \in [0.5,0.8) is shown as an green horizontal line, and the ROPE of a large effect, |\delta| \in [0.8,0.\infty) is shown as a purple horizontal line. Corresponding dashed vertical lines show the boundaries between these default ROPEs for effect sizes.

Author(s)

Riko Kelter

References

For details, see: https://arxiv.org/abs/1906.07524v1

Examples

set.seed(42)
x1=rnorm(75,0,1)
x2=rnorm(75,1,1)
x3=rnorm(75,2,1)
result=bayes.anova(n=1000,first=x1,second=x2,third=x3)

anovaplot(result)
anovaplot(result, type="effect")

x4=rnorm(75,3,1)
result2=bayes.anova(n=1000,first=x1,second=x2,third=x3,fourth=x4)
anovaplot(result2)

[Package bayesanova version 1.6 Index]