Description Usage Arguments Details Value
This function assumes X has full column rank, and returns the projection matrix onto the column space of X.
1 | proj(X)
|
X, |
a matrix with full column rank, can be an empty matrix with |
The projection matrix onto the column space of X can be written as
X(X^TX)^{-1}X^T.
When X is an empty matrix, then this function returns the zero matrix.
This function returns the desired square matrix with dimension nrow(X).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.