What is the R language Variance homogeneity Test
This article shows you what the R language variance homogeneity test is like, the content is concise and easy to understand, it can definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
T-test and analysis of variance require homogeneity of variance of grouped data, so homogenous test of variance needs to be done in advance.
Levene test is used by default in common SPSS statistical software. in order to facilitate the comparison between the results of R and SPSS, it is recommended to do Levene test in R.
In R, the method of Levene test is encapsulated in the car package. We first load the car package, and then call the leveneTest () function for statistical test.
Case data: sales training data
The purpose of the analysis is to investigate whether the variance of the training test data of the two groups of sales personnel is homogeneous.
Load car package ↓
Library (car)
↓ of Variance homogeneous Test
LeveneTest (score~fenzu,data=sales13,center=mean)
Result interpretation of ↓
The original assumption is that the variances of the two sets of data are homogeneous.
The test results showed that the variance of the two groups was homogeneous (P > 0.05). The above is what the R language variance homogeneity test is like. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.