ensureSpecFullRank.Rd
Ensure that a regression specification is full rank
ensureSpecFullRank(spec_mat, col_names)
An M by N regression specification matrix, where M > N.
Column names of the regression specification.
A full-rank specification matrix. If the input is full-rank, returns the input unmodified. Otherwise, returns a matrix with a subset of the columns from the input.
Verifies if a regression specification is full-rank. If the input is rank-deficient, identifies and drops columns so that the remaining matrix is full-rank.