View source: R/MatrixLazyEval_convenience.R
RegressOutLazily | R Documentation |
Replace a matrix with residuals from an OLS regression.
RegressOutLazily(M, X)
M |
Any matrix with a multiplication operator defined. Usually from the Matrix package. |
X |
This must be some sort of typical matrix such that |
This function returns a LazyMatrix representing the residuals after regressing M on X. If X is too big, though, you may not gain any efficiency.
This method is LAZY – calculations are put off until later, not triggered by calling this function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.