Description Usage Arguments Details Value Examples
Performs a Levene's test to assess the equality of variances
1 | leveneTest(x, g, centers = median)
|
x |
Numeric vector or list of numeric vectors: non-numeric elements of a list will be coerced with a warning |
g |
Vector or factor: groups of elements in |
centers |
Function used to calculate how much values spread; for
instance, |
The implementation of this function is based on
car:::leveneTest.default
with a more standard result.
A list with class "htest"
containing the following components:
statistic |
the value of the test statistic with a name describing it. |
p.value |
the p-value for the test. |
method |
the type of test applied. |
data.name |
a character string giving the names of the data. |
1 2 3 4 5 6 7 | vals <- sample(30, replace=TRUE)
group <- lapply(list("A", "B", "C"), rep, 10)
group <- unlist(group)
psichomics:::leveneTest(vals, group)
## Using Levene's test based on the mean
psichomics:::leveneTest(vals, group, mean)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.