我对lmer进行了一些更改。它可以正常工作,但是我无法摆脱运行程序时弹出的警告消息。我添加了以下选项,该选项使程序可以不停止运行而带有警告消息。我相信这是check.nobs.vs.rankZ =“ warningSmall”部分。有什么建议我该如何摆脱呢?谢谢你。
lmerControl(check.nobs.vs.nlev = "ignore",check.nobs.vs.rankZ =
"warningSmall",check.nlev.gtreq.5 = "ignore",check.nobs.vs.nRE="ignore",
check.rankX = c("ignore"),check.scaleX = "ignore",check.formula.LHS="ignore",
## convergence checking options
check.conv.grad = .makeCC("warning", tol = 1e-3, relTol = NULL),
check.conv.singular = .makeCC(action = "ignore", tol = 1e-4),
check.conv.hess = .makeCC(action = "warning", tol = 1e-6)
来自R的警告消息:
Warning message:
In checkZrank(reTrms$Zt, n = n, control, nonSmall = 1e+06) :
number of observations (=300) <= rank(Z) (=300); the random-effects parameters and the
residual variance (or scale parameter) are probably unidentifiable
你应该试试看check.nobs.vs.rankZ="ignore"
。
lmerControl
除了非默认选项外,无需指定其他任何内容:快速浏览一下,这些是您的非默认值:
lmerControl(check.nobs.vs.nlev = "ignore",check.nobs.vs.rankZ =
"ignore",check.nlev.gtreq.5 = "ignore",check.nobs.vs.nRE="ignore",
check.rankX = c("ignore"),
check.scaleX = "ignore",
check.formula.LHS="ignore",
check.conv.grad = .makeCC("warning", tol = 1e-3, relTol = NULL))
通常,我建议只关闭您知道要覆盖的特定警告和错误是明智的-上面的设置似乎会给您带来麻烦。
由于您没有提供可重复的示例,因此我没有检查过此内容...
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句