Find mean of SAS IML vector code example
Example: Find mean of SAS IML vector
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;