equa3vartest: Bootstrap test for equality of three (3) population variances

Description Usage Arguments Value References Examples

View source: R/equal3var.R

Description

Testing equality of three (3) population variances against the alternative that all variances are unequal.

Usage

1
equa3vartest(x1, x2, x3, a, B)

Arguments

x1

first sample vector of data or observations

x2

second sample vector of data or observations

x3

third sample vector of data or observations

a

significance level alpha

B

number of bootstrap samples. At least 500 is recommended.

Value

list consisting of a non-numeric decision whether to reject the null hypothesis or not, the significance level, and the number of bootstrap samples used

References

Cahoy, DO (2010), A Bootstrap Test For Equality Of Variances, Computational Statistics & Data Analysis, 54(10), 2306-2316. https://doi.org/10.1016/j.csda.2010.04.012

Examples

1
2
3
4
5
6
7
x1=sqrt(10)*runif(10, -sqrt(3), sqrt(3) )
x2=sqrt(1)*runif(10, -sqrt(3), sqrt(3) )
x3=sqrt(1)*runif(10, -sqrt(3), sqrt(3) )
equa3vartest(x1,x2,x3, a=0.05, B=500)


equa3vartest( rexp(10) ,rexp(10) ,rexp(10) ,  a=0.01, B=1000)

testequavar documentation built on Aug. 20, 2019, 5:13 p.m.