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.

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 July 2, 2020, 2:29 a.m.