levene_test: Levene's test

View source: R/levene_test.R

levene_testR 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 output_type = "text", the output will be the results of Levene's test in a text format (i.e., character). If output_type = "list", the output will be the results of Levene's test in a list format (e.g., p value, F stat, etc. as a list). By default, output_type = "text"

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)

kim documentation built on Oct. 9, 2023, 5:08 p.m.