equalvar | R Documentation |
Equality of Variances
equalvar(data, formula, center = "median", plots = FALSE)
data |
A |
formula |
An object of class |
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. |
plots |
A TRUE/FALSE boolean indicating whether or not to produce boxplots |
Returns a data.frame
meant to be printed showing the results of the test.
This function primarily utilizes functionality from the car
package
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.
equalvar(data=mtcars, mpg~am*vs, center="median")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.