basis {lmreg} | R Documentation |
Basis of column space of a matrix
Description
Computes an orthonormal basis of the column space of a given matrix.
Usage
basis(M, tol=sqrt(.Machine$double.eps))
Arguments
M |
Matrix for which basis of the column space is needed. |
tol |
A relative tolerance to determine rank through qr decomposition |
Value
Returns a semi-orthogonal matrix with columns forming an orthonormal basis of the column space of M.
Author(s)
Debasis Sengupta <shairiksengupta@gmail.com>, Jinwen Qiu <qjwsnow_ctw@hotmail.com>
References
Sengupta and Jammalamadaka (2019), Linear Models and Regression with R: An Integrated Approach.
Examples
basis(matrix(c(2,1,3,4,2,3,2,6,4,2,6,8),4,3))
[Package lmreg version 1.2 Index]