View source: R/FlignerKilleenTest.R
FKTest | R Documentation |
Performs a non-parametric Fligner-Killeen test for equality of variances across two or more groups, using raw vectors via a formula interface.
FKTest(formula, data, alpha = 0.05)
formula |
A formula of the form |
data |
A data frame containing the variables in the formula. |
alpha |
Significance level (default is 0.05). |
This test is particularly useful when the assumption of normality is violated, as it is robust to outliers and distributional deviations. It serves as a reliable alternative to Bartlett’s test when data do not follow a normal distribution.
Advantages: - Non-parametric: No assumption of normality. - Robust to outliers. - Suitable for heterogeneous sample sizes.
Disadvantages: - Less powerful than parametric tests under normality. - May be computationally intensive with large datasets.
An object of class "homocedasticidad"
, containing:
The Fligner-Killeen chi-squared statistic.
Degrees of freedom.
The p-value for the test.
"Homoscedastic"
or "Heteroscedastic"
depending on the test result.
A string indicating the method used ("Fligner-Killeen").
Fligner, M. A., & Killeen, T. J. (1976). "Distribution-free two-sample tests for scale." Journal of the American Statistical Association, 71(353), 210–213. <https://doi.org/10.1080/01621459.1976.10480351>
data(d_e, package = "Analitica")
res <- FKTest(Sueldo_actual ~ labor, data = d_e)
summary(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.