homog.test | R Documentation |
homog.test
performs variance homogeneity tests including Levene, Bartlett, Fligner-Killeen tests.
homog.test(formula, data, method = c("Levene", "Bartlett", "Fligner"),
alpha = 0.05, na.rm = TRUE, verbose = TRUE)
formula |
a formula of the form |
data |
a tibble or data frame containing the variables in |
method |
a character string to select one of the variance homogeneity tests. "Levene": Levene's test, "Bartlett": Bartlett's test, "Fligner": Fligner-Killeen test. |
alpha |
the level of significance to assess variance homogeneity. Default is set to alpha = 0.05. |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds. |
verbose |
a logical for printing output to R console. |
A list containing the following components:
statistic |
the corresponding test statistic. |
parameter |
the parameter(s) of the approximate corresponding distribution of the test statistic. The corresponding distribution is F distribution for Levene's test, Chi-square distribution for Bartlett's test and Fligner-Killeen test. |
p.value |
the p-value of the test. |
Osman Dag
leveneTest
bartlett.test
fligner.test
library(onewaytests)
homog.test(Sepal.Length ~ Species, data = iris)
homog.test(Sepal.Length ~ Species, data = iris, method = "Bartlett")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.