depvarBF: Compute a Bayes Factor for the comparison of dependent...

Description Usage Arguments Details Value Author(s) Examples

View source: R/depvarBF.R

Description

Compute a Bayes Factor for the comparison of dependent variances

Usage

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

Arguments

x

first continuous variable

y

second continuous variable, sorted in the same order as x

rscale

The prior width specifying the alternative hypothesis, passed to correlationBF

Details

This function realizes a test of dependent variances by applying the Morgan-Pitman test that reduces to a test of the "nullity" of a correlation between the sum and difference of two continuous variables.

Value

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

Author(s)

Martin Papenberg martin.papenberg@hhu.de

Examples

1
2
3
depvarBF(sleep$extra[sleep$group == 1], sleep$extra[sleep$group == 2])
depvarBF(iris$Sepal.Length, iris$Petal.Width)
depvarBF(iris$Sepal.Length, iris$Petal.Width, rscale = "ultrawide")

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