[R-sig-ME] lme4 package
Ben Bolker
bbo|ker @end|ng |rom gm@||@com
Sun Jul 3 00:14:41 CEST 2022
There are lots of answers about this on the web:
https://www.google.com/search?q=lme4+%22fixed+effect+model+matrix+is+rank+deficient%22
or to search just the R mailing lists:
https://www.google.com/search?q=site%3Astat.ethz.ch+%22fixed+effect+model+matrix+is+rank+deficient%22
Some set of your predictors is multicollinear (i.e., one predictor is
an exact linear combination of some other set of predictors). This is
not necessarily a problem. The most common cause is including a set of
dummy variables that describe a complete set of possibilities (e.g. if
you have habitat types A, B, and C, then including a dummy (0/1)
variable for whether an observation comes from each habitat type will be
multicollinear.
On 7/1/22 3:56 PM, mina jahan wrote:
> Hi,
> I want to run a linear mixed-effects model on the simulated data using the
> lme4 package. But after running the R code, I see this error:
>
> *fixed effect model matrix is rank deficient so dropping 1
> column/coefficient *
>
> How can I deal with this error?
> I look forward to receiving your reply. Thanks a lot in advance for your
> response.
>
> Best regards,
> Mina Jahangiri
> Ph.D. student of Biostatistics
>
> [[alternative HTML version deleted]]
>
--
Dr. Benjamin Bolker
Professor, Mathematics & Statistics and Biology, McMaster University
Director, School of Computational Science and Engineering
Graduate chair, Mathematics & Statistics
More information about the R-sig-mixed-models
mailing list