Description Usage Arguments Details Value Acknowledgement Note Author(s) References Examples
The function performs the robust Brown-Forsythe test using the group medians. Instead of the ANOVA statistic, the Kruskal-Wallis ANOVA may also be applied using this function.
1 |
y |
a numeric vector of data values. |
group |
factor of the data. |
kruskal.test |
a |
Levene (1960) proposed a test for homogeneity of variances in k groups which is based on the ANOVA statistic applied to absolute deviations of observations from the corresponding group mean. The robust Brown-Forsythe version of the Levene-type test substites the group mean by the group median in the classical Levene statistic.
A list with the following numeric components.
statistic |
the value of the test statistic. |
p.value |
the p-value of the test. |
method |
type of test performed. |
data.name |
a character string giving the name of the data. |
The authors of package lawstat
is ackownledged for their source code under free GPL license.
Modified from the lawstat
package.
Xia Shen
Brown, M. B. and Forsythe, A.B. (1974). Robust tests for equality of
variances. Journal of the American Statistical Association, 69, 364-367.
Levene, H. (1960). Robust Tests for Equality of Variances, in Contributions
to Probability and Statistics, ed. I. Olkin, Palo Alto, CA: Stanford Univ. Press.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.