indepvarBF: Compute a Bayes Factor for the comparison of independent...

Description Usage Arguments Details Value Note Author(s) Examples

View source: R/indepvarBF.R

Description

Compute a Bayes Factor for the comparison of independent variances

Usage

1
indepvarBF(x, y, rscale = "medium")

Arguments

x

first continuous variable

y

second continuous variable

rscale

The prior width specifying the alternative hypothesis, passed to oneWayAOV.Fstat

Details

This function realizes a test of independent variances by converting the F value from a Levene test to a Bayes Factor using the function oneWayAOV.Fstat.

Value

The Bayes factor quantifying the degree to which the alternative hypothesis is favored over the null hypothesis

Note

As stated it the documentation to oneWayAOV.Fstat, this method should only be used with F values obtained from balanced designs (i.e., the groups should have equal size).

Author(s)

Martin Papenberg martin.papenberg@hhu.de

Examples

1
2
3
4
# True different variances:
indepvarBF(rnorm(100, mean = 100, sd = 15), rnorm(100, mean = 100, sd = 20))
# True same variances: 
indepvarBF(rnorm(100, mean = 100, sd = 15), rnorm(100, mean = 100, sd = 15))

m-Py/varBF documentation built on Nov. 24, 2019, 4:28 p.m.