ensure_full_rank: Ensure a Design Matrix has Full (Column) Rank

Description Usage Arguments Value

View source: R/contrast_utils.R

Description

Determine and drop redundant columns using the qr decomposition.

Usage

1
ensure_full_rank(X, tol = 1e-07, silent = FALSE, test.ans = FALSE)

Arguments

X

a design matrix as produced by model.matrix.

tol

qr tolerance.

silent

throw message if columns are dropped from X? Default is FALSE.

test.ans

Test if the resulting/returned matrix has full rank? Default is FALSE.

Value

A design matrix in which redundant columns are dropped


lmerTest documentation built on Oct. 23, 2020, 6:16 p.m.