levene.test: Levene Test for Homogeneity of Variances
Description
This function performs the Levene test to check the homogeneity of variances across groups.
Usage
levene.test(ds)
Value
A single numeric value named Levene.p, representing the p-value of the Levene test.
Arguments
ds
A data frame with two columns: the first column contains numeric values, and the second column contains group labels.
Author
Zeynel Cebeci, A. Firat Ozdemir, Engin Yildiztepe
Details
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.