Using SAS I want to generate the covariance matrices for a dataset which contains a binary class, one covariance matrix for class 1 and one covariance matrix for class 2.
PROC MEANS DATA=my_dataset MAXDEC=2 MEAN STD;
CLASS binary_class;
VAR x1 x2 x3;
RUN;
PROC CORR DATA=my_dataset noprob COV;
CLASS binary_class;
VAR x1 x2 x3;
run;
but when I run the second statement I get:
ERROR 180-322: Statement is not valid or it is used out of proper order.
Can someone please help me?