levene_test {kim} | R Documentation |
Levene's test
Description
Conduct Levene's test (i.e., test the null hypothesis that the variances in different gorups are equal)
Usage
levene_test(
data = NULL,
dv_name = NULL,
iv_1_name = NULL,
iv_2_name = NULL,
round_f = 2,
round_p = 3,
output_type = "text"
)
Arguments
data |
a data object (a data frame or a data.table) |
dv_name |
name of the dependent variable |
iv_1_name |
name of the first independent variable |
iv_2_name |
name of the second independent variable |
round_f |
number of decimal places to which to round the F-statistic from Levene's test (default = 2) |
round_p |
number of decimal places to which to round the p-value from Levene's test (default = 3) |
output_type |
If |
Value
the output of the function depends on the input for
output_type
. By default, the output will be the
results of Levene's test in a text format (i.e., character).
Examples
## Not run:
levene_test(
data = mtcars, dv_name = "mpg",
iv_1_name = "vs", iv_2_name = "am")
## End(Not run)