assumption.test: Assumption Test

Description Usage Arguments Details Value Author(s) Examples

Description

Tests the normality and the homogeneity assumptions.

Usage

1
assumption.test(aov.object, alpha=0.05)

Arguments

aov.object

the ANOVA-Object created with aov()

alpha

OPTIONAL the alpha value to reject H0, default: 0.05

Details

The function used the Agostino test to test for normality. If normality holds, it uses the Bartlett test to check for homogeneity. If it does not hold, it uses the Levene's test if there are no outliers and otherwise the Brown-Forsyth test.

Value

The test results

Author(s)

Benjamin Schlegel, kontakt@benjaminschlegel.ch

Examples

1
2
3
df = data.frame(Y=c(5,3,3,3,1,2,3,6,2,5,3,5,6,5,6,5,4,5,6,5,6,7,6,7),A=sort(rep(1:4,6)))
object = aov(Y~A, data=df)
assumption.test(object)

benjaminschlegel/experiment.tools documentation built on May 8, 2019, 10:52 p.m.