当我在 r 中运行 lmer 函数时,我遇到了一个奇怪的错误。
我尝试更改变量类型(它们都是数字或因子)并在分析之前删除 NA,但似乎没有任何效果。
model_1 <- lmer(Q14 ~ gender * time + (1|OMID), data=data)
summary(model_1)
具体来说,我的错误信息如下:
Error in as(value, fieldClass, strict = FALSE) :
internal problem in as(): “labelled” is(object, "numeric") is TRUE, but the metadata asserts that the 'is' relation is FALSE
不知道为什么会这样,但我似乎找不到任何答案。任何帮助,将不胜感激。
谢谢!