Skip to content
Prev 11621 / 398502 Next

Diag "Hat" matrix

On Thu, 7 Jun 2001, Kenneth Cabrera wrote:

            
None.  You have forgotten the intercept: the design matrix for

y~x1+x2+x3+x4+x5

has a first column of ones.  Try using cbind(1, X).

[...]