How to implement Analysis of Variance ANOVA in R
This article will explain in detail how to achieve ANOVA in R, the editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
R realizes the test method in statistics-Analysis of Variance ANOVA
Preface
Analysis of variance (significance test of mean)
Analysis of Variance (Analysis of Variance, referred to as ANOVA), also known as "coefficient of variation analysis", is invented by R.A.Fisher and is used to test the significance of the difference in the mean of two or more samples.
1. Applicable conditions
The data of analysis of variance must satisfy three conditions: independence, normality and homogeneity of variance.
-# normality test #-# Shapiro-Wilk test is used to test whether the data is in accordance with the normal distribution, similar to the linear regression method, is to test its residual in the regression curve. # the author recommends using this method when the sample size is very small, such as N