Does anyone know what is wrong with this code:
proc iml;
x={1,
2,
3,
4,
5,
6};
xt=t(x);
print transpose;
Using this data, I am expected to find x', x'x, x'x inverse, X’Y, b = (X’X)-1X’Y, e = Y-Xb, etc. Does anyone know how to best do this?
X | Y |
1 2 3 4 5 6 | 0.83 7.48 14.45 12.70 20.46 25.73 |