fixed-effect model matrix is rank deficient

Hi, why get this warning message when run LMM in R?
fixed-effect model matrix is rank deficient so dropping 1 column / coefficient
Thank you!

Hi @Comede_way -

What R is trying to tell you is that your dataset has a linear combination of variables. Meaning, some set of columns colA + colB = colC. This can also occur (I believe) if one of your columns is a constant value across all observations. This causes the linear algebra to fail, where the solution is to remove any column that's part of the equation.

Ideally, you'll go back to your data and drop the proper column(s) yourself instead of relying on R "being helpful".

Best,
Randy

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.