lmer Error: number of observations < number of random effects

允我心安 提交于 2019-12-11 17:05:35

问题


I am trying to run an LMM allowing time to be a random effect:

lmer(efficacy ~ time + (1+time|id), data=long, REML=TRUE)

However, I get the error messageas below:

Error: number of observations (=3948) <= number of random effects (=4496) for term (1 + time | id); the random-effects parameters and the residual variance (or scale parameter) are probably unidentifiable

I have three time points but not all subjects have data for all 3 time points (attrition) but my missing count on my outcome variable (efficacy) only had 13 missing values and I have a total number of 3961 participants in my entire data set. If anyone can shed some light on this or point me in the right direction I'd much appreciate it.

Thanks.

来源:https://stackoverflow.com/questions/53699081/lmer-error-number-of-observations-number-of-random-effects

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!