redundant_cols.model.matrix: Determine the redundant columns in a model matrix

View source: R/redundant_cols.model.matrix.R

redundant_cols.model.matrixR Documentation

Determine the redundant columns in a model matrix

Description

This function identifies the redundant columns in a model matrix, if the model matrix is not of full rank.

Usage

redundant_cols.model.matrix(model_matrix)

Arguments

model_matrix

the model matrix, typically the result of a call to model.matrix or similar functions.

Value

a (possibly empty) character vector, with the names of the redundnat columns. Note that these names will typically include the variable name and (if the variable is treated as a factor) the name of the redundant level(s).


mjdufort/miscHelpers documentation built on Feb. 4, 2024, 7:44 p.m.