proc princomp data=gangjb out=og prefix=z;
var x1-x7;
run;
******************************************************************************************;
** Eigenvalues of the Correlation Matrix ;
** Eigenvalue Difference Proportion Cumulative ;
** 1 5.93069754 4.94939945 0.8472 0.8472 ;
** 2 0.98129809 0.92179391 0.1402 0.9874 ;
******************************************************************************************;
proc reg data=og;
model y=z1 z2;run;
**************************************************************************************************;
** Parameter Estimates ;
** Parameter Standard Variable DF Estimate Error t Value Pr > |t| ;
** Intercept 1 26.90000 0.28306 95.03 <.0001 ;
** z1 1 6.48597 0.12140 53.43 <.0001 ;
** z2 1 -2.71494 0.29845 -9.10 <.0001 ;
**************************************************************************************************;
|