Title

_rm_matrix_noomitted --
Remove rows or columns of
a matrix that are flagged as omitted because of collinearity.

Syntax

_rm_matrix_noomitted
input-matrix
(row | col)
[ name-string ]

inpuat-matrix Name of matrix that is to be revised.

row | col Select based on omitted variables in the rows or the
columns of the input matrix.

name-string Names for each row/column of the input
matrix that will be assigned to the revised matrix. This allows you to
change row/column names.

Description

_rm_matrix_noomitted is a programmer's tool that
extracts the rows/columns of a matrix that do not contain information
on omitted variables. This is useful when extracting information from
e(b) or e(V).
If you want to
select both rows and columns, run the command twice, once with the row option,
then with the col option.

Saved results

The changed matrix is returned to with the same name. If you want the
to preserve the matrix before the selection, you must save another copy
of the matrix before running this command.

Also see

_rm for other _rm programming commands.