Skip to content
Prev 361049 / 398506 Next

Matrix multiplications

Dear R users:

I have written the following lines :
when I wrote the following line
I have obtained an error message, I don't know why namely (t(y-X %*%
b)%*%(y-X %*% b)/(length(y)-ncol(X))) is a scalar:
[,1]
[1,] 3.620354


Can you please help me.

Thank you

George