library(merTools)
突然停止了为我工作。在lmer
输入正确的plotFEsim(FEsim(model))
模型时,我收到此错误:
Error: class(merMod) %in% c("lmerMod", "glmerMod", "blmerMod", "bglmerMod") is not TRUE
我想强调输入的模型是正确的,所以示例环境在这里不会有太多帮助。对于复制,任何具有一些随机和固定效果的lmer
模型都应该这样做。
答案 0 :(得分:0)
好吧,我只是重新 SELECT A.id,
D1,
D2,
Least(D1, D2)
FROM A CROSS JOIN E
LEFT JOIN (SELECT Max(CASE WHEN b = 1 THEN date END) AS D1,
Max(CASE WHEN b = 2 THEN date END) AS D2,
E.Id
FROM b
INNER JOIN c
ON b.id = c.id
WHERE b IN ( 1, 2 )
Group by E.Id) D
ON c.id = D.id
,它再次有效! (可能应该先这样做,即使我几天前只安装了它。)