Why do I get this error? I just clicked shift+enter in the y and it appeared.
https://i.stack.imgur.com/IAKs8.png
This is the data
y = {{4.9176, 5.0208, 4.5429, 4.5573, 5.0597, 3.8910, 5.8980, 5.6039,
5.8282, 5.3003, 6.2712, 5.9592, 5.0500, 8.2464, 6.6969, 7.7841,
9.0384, 5.9894, 7.5422, 8.7951, 6.0831, 8.3607, 8.1400, 9.1416}};
x = {25.9, 29.5, 27.9, 25.9, 29.9, 29.9, 30.9, 28.9, 35.9, 31.5, 31,
30.9, 30, 36.9, 41.9, 40.5, 43.9, 37.5, 37.9, 44.5, 37.9, 38.9,
36.9, 45.8};
Id = IdentityMatrix[24];
x = MatrixForm[Thread[{1, x}]];
M = x*Inverse[Transpose[x]*x]*Transpose[x];
SSE = Transpose[y]*(Id - M)*y
SST = Transpose[y - Mean[y]]*(y - Mean[y])
I just wanted the transpose of y (first, in the end I want to know SSE).
How come unequal length error appeared?
Help me please
(I apologize for many questions)
MatrixFormfrom the rhs of definition: usex = Thread[{1,x}];– kglr Oct 31 '18 at 05:34.rather than*for matrix multiplication. – JimB Oct 31 '18 at 05:42MatrixForm. – Henrik Schumacher Oct 31 '18 at 07:34