VHOMOGENEITY procedure
Tests homogeneity of variances and variance-covariance matrices (R.W. Payne).
Options
Parameters
Description
Equality of variances of residuals is an important requirement for the validity of analysis of variance and regression. VHOMOGENEITY allows the homogeneity of variances in different groups to be assessed using Bartlett's test. This test is rather sensitive to departures from Normality (another requirement for the validity of these analyses); so it is recommended that the residuals also be examined, for example using procedures RCHECK or DAPLOT.
To test homogeneity of variances, VHOMOGENEITY can take as input either the original data values together with factors defining the groups, or variances along with degrees of freedom. For the first method the DATA parameter should be set to a variate containing the data values; the factors are specified by the GROUPS option. For the second method the variances are input (in any numerical structure) using the VARIANCES parameter, and the degrees of freedom (in a structure of the same type as for VARIANCES) using the DF parameter.
With multivariate data, the analogous test for variance-covariance matrices is given by Box (1950). Again two methods of input are available. The original data variates can be supplied, in a pointer, using the DATA parameter and the factors can be listed by the GROUPS option (as for a single variate). Alternatively, the VARIANCES parameter can be set to a pointer containing the variance-covariance matrices to be tested, and the DF parameter to a pointer containing the corresponding degrees of freedom.
If the variances and degrees of freedom are to be calculated by the procedure (from DATA and GROUPS), the VARIANCES and DF parameters can be used to save the calculated values. When testing homogeneity of variances, the variances and degrees of freedom are saved in tables, classified by the GROUPS factors; these tables need not be declared in advance. With variance-covariance matrices, VARIANCES is a pointer to the list of symmetric matrices that have been formed, and DF a pointer to a list of scalars.
Printed output is controlled by the PRINT option, with settings variances and test to print the variances and the test statistics respectively. By default, PRINT=test.
Options: PRINT, GROUPS. Parameters: DATA, VARIANCES, DF.
Method
If the raw data have been given as input, the procedure uses TABULATE to form tables of variances, and of replications from which the degrees of freedom are calculated. The test statistic is calculated as M/C, where
M = ∑ ni × log( ∑{ ni × si } / ∑{ ni } ) - ∑{ ni × log( si ) }
C = 1 + ( 1 / ( 3 × (N - 1) ) ) × ( ∑{ 1/ni } - 1 / ( ∑ ni ) )
N = number of groups
ni = degrees of freedom of group i
si = variance of group i
The number of degrees of freedom associated with the test statistic is the number of groups minus one. See, for example, Snedecor & Cochran (1980, pages 252-253).
The FSSPM directive is used to form variance-covariance matrices. The equivalent test of homogeneity is given by Box (1950).
Action with
RESTRICT
If the DATA variates are restricted, only the units not excluded by the restriction will be used to calculate the variances and degrees of freedom.
References
Box, G.E.P. (1950). Problems in the analysis of growth and wear curves. Biometrics, 6, 362-389.
Snedecor, G.W. & Cochran, W.G. (1980). Statistical Methods (seventh edition). Iowa State University Press, Ames, Iowa.