Q {lazy.mat} | R Documentation |
Projection Operators to the Orthogonal Complement of the Column Space of the Input
Q( ..., Ginv = 0, Ginvargs = list(tol = .Machine$double.eps, MASS = 0, MP = 0, nopermute = 0, eps = 1e-08, chkginv = 0, epsc = 1e-08) )
... |
Input matrices: |
Ginv |
= 1 to use Ginv function in lazy.mat package |
Ginvargs |
The list of arguments to Ginv function |
Let X
be the colum binded ... matrices.
The the projection operator to the orthogonal complement of
the column space of X
is defined as
I - X %*% solve( t(X) %*% X ) %*% t(X)
.
If X
is not of full column rank, native solve
function
stops with error. In this case, use Ginv=1 in order to replace
solve
with Ginv
function.
X=demomat(3,2) PX=P(X) PX1=P(rep(1,nrow(X)),X, Ginv=1) PX-PX1 QX=Q(X) PX%*%QX