is_var.equal: Test for Homogeneity of Variances

View source: R/utils.R

is_var.equalR Documentation

Test for Homogeneity of Variances

Description

Test for Homogeneity of Variances

Usage

is_var.equal(y, x, alpha = 0.05, test = "levene", center = stats::median)

Arguments

y

Numeric vector (response).

x

Grouping factor.

alpha

Threshold for null hipotesis (of normality) rejection. Defaults to 0.05

test

A character indicating whether to use Levene's test ("levene", the default) or Fligner's test ("fligner"). The first letter will be used.

center

A function to compute the center of each group (valid only for Levene's Test). The mean gives the original Levene's test; the default, median, provides a more robust test.

Value

A logical of length one, indicating if the p.value of the test was greater than the alpha (which defaults to 0.05).


matcasti/Report documentation built on July 23, 2024, 10:24 a.m.