anovaplot: anovaplot

Description Usage Arguments Value Author(s) References Examples

View source: R/bayes.anova.R

Description

Plots the results of a Bayesian ANOVA

Usage

1
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, δ \in (-0.2,0.2) is shown as a red horizontal line, the ROPE of a small effect, |δ| \in [0.2,0.5) is shown as an orange horizontal line, the ROPE of a medium effect, |δ| \in [0.5,0.8) is shown as an green horizontal line, and the ROPE of a large effect, |δ| \in [0.8,0.∞) 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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)

bayesanova documentation built on Oct. 28, 2021, 5:09 p.m.