mean SAS IML code example
Example: mean SAS IML
proc iml;
x = {-1 -1,
0 1,
1 2,
1 0,
-1 0 };
rowMeans = x[ ,:];
colMeans = x[:, ];
grandMean= x[:];
print x rowMeans, colMeans grandMean;
proc iml;
x = {-1 -1,
0 1,
1 2,
1 0,
-1 0 };
rowMeans = x[ ,:];
colMeans = x[:, ];
grandMean= x[:];
print x rowMeans, colMeans grandMean;