If the model does not satisfy ANOVA assumptions (normality in particular), if one-way, Kruskal-Wallis non-parametric test is recommended. But, what if you have multiple factors?
4 Answers
You can use a permutation test.
Form your hypothesis as a full and reduced model test and using the original data compute the F-statistic for the full and reduced model test (or another stat of interest).
Now compute the fitted values and residuals for the reduced model, then randomly permute the residuals and add them back to the fitted values, now do the full and reduced test on the permuted dataset and save the F-statistic (or other). Repeate this many times (like 1999).
The p-value is then the proportion of the statistics that are greater than or equal to the original statistic.
This can be used to test interactions or groups of terms including interactions.
- 51,722
The Kruskal-Wallis test is a special case of the proportional odds model. You can use the proportional odds model to model multiple factors, adjust for covariates, etc.
- 91,879
- 6
- 178
- 397
-
7If one would like to learn more about the connection between K-W and the proportional odds model, what would be a good reference? – whuber Jun 21 '11 at 14:24
-
8@ARTICLE{pet89ord, author = {Peterson, Bercedis}, year = 1989, title = {Re: {Ordinal} regression models for epidemiologic data}, journal = Am J Epi, volume = 129, pages = {745-748}, annote = {proportional odds model; partial proportional odds} } @ARTICLE{mcc80reg, author = {{McCullagh}, Peter}, year = 1980, title = {Regression models for ordinal data}, journal = JRSSB, volume = 42, pages = {109-142}, annote = {ordinal logistic model} }See also Whitehead Stat in Med 1993 p. 2257 – Frank Harrell Jun 22 '11 at 02:36
Friedman's test provides a non-parametric equivalent to a one-way ANOVA with a blocking factor, but can't do anything more complex than this.
- 3,412
One nonparametric test for a two-way factorial design is the Scheirer–Ray–Hare test. It is described by Sokal and Rohlf (1995), and can be found on a variety of websites, though it appears to be not particularly well known or widely discussed.
Another approach is aligned ranks transformation anova (ART anova). With current software implementations, this approach is easy to use, and in some implementations it can handle relatively complex designs including random effects.
References
Sokal, R.R. and F.J. Rohlf. 1995. Biometry, 3rd ed. W.H. Freeman. New York.
- 11,330
- 2
- 15
- 35
-
2A link for ART anova: https://rcompanion.org/handbook/F_16.html – kjetil b halvorsen Feb 08 '22 at 15:47
ez(ezPermfunction) andlmPerm(aovp). However, the ezPerm documentation indicates that only the main effects should be trusted, and theaovpproduces unstable p-values(see Henrik answer). Any ideas of what can I use instead? – toto_tico Nov 13 '15 at 22:18