data hotel;
input y1 y2 y3 group;
cards;
1.21 .61 .70 1
 .92 .43 .71 1
 .80 .35 .71 1
 .85 .48 .68 1
 .98 .42 .71 1
1.15 .52 .72 1
1.10 .50 .75 1
1.02 .53 .70 1
1.18 .45 .70 1
1.09 .40 .69 1
1.40 .50 .71 2
1.17 .39 .69 2
1.23 .44 .70 2
1.19 .37 .72 2
1.38 .42 .71 2
1.17 .45 .70 2
1.31 .41 .70 2
1.30 .47 .67 2
1.22 .29 .68 2
1.00 .30 .70 2
1.12 .27 .72 2
1.09 .35 .73 2
;
proc reg;
 model group = y1 y2 y3/stb;
run;

Hotellings T2 Example 2

-----------------------------------------------------------------------------------

Model: MODEL1
Dependent Variable: GROUP

                           Analysis of Variance

                           Sum of         Mean
  Source          DF      Squares       Square      F Value       Prob>F

  Model            3      3.94656      1.31552       15.703       0.0001
  Error           18      1.50799      0.08378
  C Total         21      5.45455

      Root MSE       0.28944     R-square       0.7235
      Dep Mean       1.54545     Adj R-sq       0.6775
      C.V.          18.72864


                            Parameter Estimates

                  Parameter      Standard    T for H0:            Standardized
   Variable  DF    Estimate         Error   Parameter=0  Prob>|T|     Estimate
   INTERCEP   1    2.153220    2.61219528        0.824    0.4206    0.00000000
   Y1         1    2.246938    0.40874367        5.497    0.0001    0.69241909
   Y2         1   -3.691243    0.76678494       -4.814    0.0001   -0.60463005
   Y3         1   -2.242679    3.58809865       -0.625    0.5398   -0.07768869