Hi,
I am new in SAS.
While I am doing Preacher & Hayes's sobel macro using SAS, I got error message. Please see below:
statement : IF at line 182 column 1
ERROR: Matrix bw has not been set to a value.
statement : PRINT at line 182 column 1
ERROR: Matrix op has not been set to a value.
statement : PRINT at line 182 column 1
ERROR: Matrix r2med has not been set to a value.
I executed the command set called called %sobel, with syntax:
%sobel(data=file, y dv, x=iv, m med, boot=z);
I added this syntax at the end of matrix provided by Precher's & Hayes...
For example,
.
.
.
%mend sobel;
%sobel (data=2011.sav, y=BDI, x=WORRY, m=DAILYCOMPGAME, boot=5000);
Any idea?