equal_test {tidysummary} | R Documentation |
Test for Equality of Variances
Description
Performs Levene's test to assess equality of variances between groups.
Usage
equal_test(data, var, group, center = "median")
Arguments
data |
A data frame containing the variables to be tested. |
var |
A character string specifying the numeric variable in |
group |
A character string specifying the grouping variable in |
center |
A character string specifying the |
Value
Logical value:
-
TRUE
: Variances are equal, p-value more than 0.05 -
FALSE
: Variances are unequal or an error occurred during testing
Methodology for Equality of Variances
Levene's test is the default method adopted in SPSS, the original Levene's test select center = mean, but here select center = median for a more robust test
Examples
equal_test(iris, "Sepal.Length", "Species")
[Package tidysummary version 0.1.0 Index]