Skip to content
Prev 42665 / 398506 Next

question about how summary.lm works

Dominic Barraclough <dominicb at cvs.rochester.edu> writes:
It's fairly easy, at least if we ignore the pivoting. We want
inv(X'X) where X is the design matrix, and we have X=QR where Q has
orthogonal columns. So Q'Q is the identity and X'X = R'R, i.e. R is a
Choleski factor of X'X, and we can use chol2inv to get to the inverse
of X'X. The rest is storage issues.