Description Usage Arguments Details Value Author(s) Examples
Tests the normality and the homogeneity assumptions.
1 | assumption.test(aov.object, alpha=0.05)
|
aov.object |
the ANOVA-Object created with aov() |
alpha |
OPTIONAL the alpha value to reject H0, default: 0.05 |
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.
The test results
Benjamin Schlegel, kontakt@benjaminschlegel.ch
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.