supplbasis: Supplementary basis vectors for column space of a matrix

Description Usage Arguments Value Author(s) References Examples

View source: R/supplbasis.R

Description

Computes a basis which, together with a basis of some columns of a matrix, constitute a basis of the column space of the entire matrix.

Usage

1
supplbasis(A, B, tol=sqrt(.Machine$double.eps))

Arguments

A

Sub-matrix containing some columns of a matrix.

B

Sub-matrix containing remaining columns of same matrix.

tol

A relative tolerance to detect rank deficiency during qr decomposition (default = sqrt(.Machine$double.eps)).

Value

Returns a semi-orthogonal matrix whose columns, together with a basis of the column space of A, constitute a basis of the column space of the entire matrix (A:B).

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

1
2
3
A <- cbind(c(2,1,-2),c(3,1,-1))
B <- diag(c(1,1,0))
supplbasis(A,B)

lmreg documentation built on May 2, 2019, 9:29 a.m.

Related to supplbasis in lmreg...