equalvar: Equality of Variances

Description Usage Arguments Value Note References Examples

View source: R/equalvar.R

Description

Equality of Variances

Usage

1
equalvar(data, formula, center = "median")

Arguments

data

A data.frame containing columns of variables.

formula

An object of class formula. The left side of the formula should be a numeric continuous response. The right side of the formula should consist of categorical factors. The variables on the right-hand-side of the model must all be factors and must be completely crossed.

center

The name of a function to compute the center of each group; mean gives the original Levene's test; the default, median, provides a more robust test.

Value

Returns a data.frame meant to be printed showing the results of the test.

Note

This function primarily utilizes functionality from the car package

References

Fox, J. (2016) Applied Regression Analysis and Generalized Linear Models, Third Edition. Sage.

Fox, J. and Weisberg, S. (2019) An R Companion to Applied Regression, Third Edition, Sage.

Examples

1
equalvar(data=mtcars, mpg~am*vs, center="median")

jprice80/fullprocs documentation built on June 13, 2020, 11:09 p.m.