[R] Why H1=1? (H's the hat matrix)
Gabor Grothendieck
ggrothendieck at gmail.com
Sun Oct 11 20:09:28 CEST 2009
H projects vectors onto the range of X so any vector already in the
range of X gets projected onto itself.
On Sun, Oct 11, 2009 at 2:03 PM, Peng Yu <pengyu.ut at gmail.com> wrote:
> Suppose I have the following hat matrix:
>
> H=X(X'X)^{-1}X'
> X is a n by p matrix, where n >= p and X_{i,1} = 1
>
> I'm wondering why H1 = 1. (Here, 1 is column vector, whose each
> element is the number 1)
>
> Thank you!
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list