Calculates the residual maker matrix \(\left( \mathbf{M} \right)\) using $$ \mathbf{M} = \mathbf{I} - \mathbf{P} $$ where $$ \mathbf{P} = \mathbf{X} \left( \mathbf{X}^{T} \mathbf{X} \right)^{-1} \mathbf{X}^{T} . $$ The residual maker matrix \(\left( \mathbf{M} \right)\) transforms the \(\mathbf{y}\) vector to the vector of residuals \(\left( \mathbf{e} = \mathbf{My} \right)\) .
.M(X, P = NULL)
X |
|
---|---|
P |
|
Returns the residual maker matrix \(\left( \mathbf{M} \right)\) .
If P = NULL
, the P
matrix is computed using P()
.
Ivan Jacob Agaloos Pesigan