search for: tp4635155

Displaying 1 result from an estimated 1 matches for "tp4635155".

2012 Jul 02
3
residuals from lm
...Y <- as.matrix(mtcars[,1]) X <- as.matrix(mtcars[,c(2:11)]) # shouldnt this: H <- X %*% solve(t(X) %*% X) %*% t(X) (diag(dim(H)[1]) - H) %*% Y # be equal to this: residuals(lm(Y~X)) # ??? # thanks -- View this message in context: http://r.789695.n4.nabble.com/residuals-from-lm-tp4635155.html Sent from the R help mailing list archive at Nabble.com.