Skip to content
Prev 13665 / 398503 Next

Two ?'s:Permuting a data matrix and projection operator

I don't really understand what dou you want...
The expression of the projection operator on subspace engendered by a 
matrix X is:
PX=X%*%(t(X)%*%Dn%*%X)-%*%t(X)%*%Dn
where Dn is a diagonal matrix of row weight and (t(X)%*%Dn%*%X)- is 
generalized inverse of (t(X)%*%Dn%*%X).
In multivariate regression analysis you use:
y=PX%*%y+error=a+bX1+cX2+...+error
But if you want a regression without term a (i.e. orthogonal to 
vector (1,1,...1), you must centered matrix X.

Is it what you want ?