The REG Procedure

MTEST Statement

<label:> MTEST <equation <,, equation>> </ options> ;

where each equation is a linear function composed of coefficients and variable names. The label is optional.

The MTEST statement is used to test hypotheses in multivariate regression models where there are several dependent variables fit to the same regressors. If no equations or options are specified, the MTEST statement tests the hypothesis that all estimated parameters except the intercept are zero.

The hypotheses that can be tested with the MTEST statement are of the form

\[  (\bL \bbeta - \mb {cj}) \bM = 0  \]

where $\bL $ is a linear function on the regressor side, $\bbeta $ is a matrix of parameters, $\mb {c}$ is a column vector of constants, $\mb {j}$ is a row vector of ones, and $\bM $ is a linear function on the dependent side. The special case where the constants are zero is

\[  \bL \bbeta \bM = \mb {0}  \]

See the section Multivariate Tests for more details.

Each linear function extends across either the regressor variables or the dependent variables. If the equation is across the dependent variables, then the constant term, if specified, must be zero. The equations for the regressor variables form the $\bL $ matrix and $\mb {c}$ vector in the preceding formula; the equations for dependent variables form the $\bM $ matrix. If no equations for the dependent variables are given, PROC REG uses an identity matrix for $\bM $, testing the same hypothesis across all dependent variables. If no equations for the regressor variables are given, PROC REG forms a linear function corresponding to a test that all the nonintercept parameters are zero.

As an example, consider the following statements:

model y1 y2 y3=x1 x2 x3;
mtest x1,x2;
mtest y1-y2, y2 -y3, x1;
mtest y1-y2;

The first MTEST statement tests the hypothesis that the X1 and X2 parameters are zero for Y1, Y2, and Y3. In addition, the second MTEST statement tests the hypothesis that the X1 parameter is the same for all three dependent variables. For the same model, the third MTEST statement tests the hypothesis that all parameters except the intercept are the same for dependent variables Y1 and Y2.

You can specify the following options in the MTEST statement:


displays the canonical correlations for the hypothesis combinations and the dependent variable combinations. If you specify

mtest / canprint;

the canonical correlations between the regressors and the dependent variables are displayed.


displays the $\bM $ matrix and various intermediate calculations.


specifies the method of evaluating the multivariate test statistics. The default is MSTAT=FAPPROX, which specifies that the multivariate tests are evaluated by using the usual approximations based on the F distribution, as discussed in the Multivariate Tests section in Chapter 4: Introduction to Regression Procedures. Alternatively, you can specify MSTAT=EXACT to compute exact p-values for three of the four tests (Wilks’ lambda, the Hotelling-Lawley trace, and Roy’s greatest root) and an improved F approximation for the fourth (Pillai’s trace). While MSTAT=EXACT provides better control of the significance probability for the tests, especially for Roy’s greatest root, computations for the exact p-values can be appreciably more demanding, and are in fact infeasible for large problems (many dependent variables). Thus, although MSTAT=EXACT is more accurate for most data, it is not the default method.


displays the $\mb {H}$ and $\mb {E}$ matrices.