Home > freetb4matlab > statistics > tests > bartlett_test.m

bartlett_test

PURPOSE ^

% Perform a Bartlett test for the homogeneity of variances in the data

SYNOPSIS ^

function [pval, chisq, df] = bartlett_test (varargin)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {[@var{pval}, @var{chisq}, @var{df}] =} bartlett_test (@var{x1}, @dots{}) 
% Perform a Bartlett test for the homogeneity of variances in the data
% vectors @var{x1}, @var{x2}, @dots{}, @var{xk}, where @var{k} > 1.
%
% Under the null of equal variances, the test statistic @var{chisq}
% approximately follows a chi-square distribution with @var{df} degrees of
% freedom.
%
% The p-value (1 minus the CDF of this distribution at @var{chisq}) is
% returned in @var{pval}.
%
% If no output argument is given, the p-value is displayed.
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003