Determine and drop redundant columns using the qr
decomposition.
ensure_full_rank(X, tol = 1e-07, silent = FALSE, test.ans = FALSE)
a design matrix as produced by model.matrix
.
qr
tolerance.
throw message if columns are dropped from X
? Default
is FALSE
.
Test if the resulting/returned matrix has full rank? Default
is FALSE
.
A design matrix in which redundant columns are dropped