Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

GetLinInd

Extracting the linearly independant columns from a matrix


Description

Extracts the linearly dependant columns of matrix to obtain a matrix of full rank using QR decomposition.

Usage

GetLinInd(mat, tol = 1e-10)

Arguments

mat

The matrix possibly containing linearly dependant columns

tol

Rank estimation tolerance. Default is 1e-10.

Value

A list containing the new matrix and the index of the selected colums.

mat.li

A matrix made of the linearly independant columns of mat.

idx

The index of the selected columns.

Author(s)

Johan Barthelemy

Maintainer: Johan Barthelemy johan@uow.edu.au.

References

Golub, G. H., Van Loan C. F. (2012) Matrix Computations. Third Edition. Johns Hopkins University Press.

See Also

qr.

Examples

# generation of a matrix with linearly dependant columns
A <- matrix(c(1, 2, 3,
              1, 2, 4,
              1, 2, 8), nrow = 3, ncol = 3, byrow = TRUE)
              
# extracting and printing the linearly independant columns
B <- GetLinInd(A)
print(B)

mipfp

Multidimensional Iterative Proportional Fitting and Alternative Models

v3.2.1
GPL-2
Authors
Johan Barthelemy [aut, cre], Thomas Suesse [aut], Mohammad Namazi-Rad [ctb]
Initial release
2018-08-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.