bartlett_test
statistics: h = bartlett_test (x)
statistics: h = bartlett_test (x, group)
statistics: h = bartlett_test (x, alpha)
statistics: h = bartlett_test (x, group, alpha)
statistics: [h, pval] = bartlett_test (…)
statistics: [h, pval, chisq] = bartlett_test (…)
statistics: [h, pval, chisq, df] = bartlett_test (…)
Perform a Bartlett test for the homogeneity of variances.
Under the null hypothesis of equal variances, the test statistic chisq approximately follows a chi-square distribution with df degrees of freedom.
The p-value (1 minus the CDF of this distribution at chisq) is returned in pval. h = 1 if the null hypothesis is rejected at the significance level of alpha. Otherwise h = 0.
Input Arguments:
anova1
function. If x is a matrix, then
group can be omitted either by entering an empty array ([]) or by
parsing only alpha as a second argument (if required to change its
default value).
See also: levene_test, vartest2, vartestn
Source Code: bartlett_test