levene.test | R Documentation |
This function performs the Levene test to check the homogeneity of variances across groups.
levene.test(ds)
ds |
A data frame with two columns: the first column contains numeric values, and the second column contains group labels. |
The function calculates the absolute deviations from the group means, performs an ANOVA on these deviations, and returns the p-value of the Levene test.
A single numeric value named Levene.p
, representing the p-value of the Levene test.
Zeynel Cebeci, A. Firat Ozdemir, Engin Yildiztepe
df <- data.frame(values = c(1.1, 2.3, 2.5, 3.7, 1.2, 2.1, 3.4, 3.9),
groups = c("A", "A", "B", "B", "A", "A", "B", "B"))
levene.test(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.