我正在使用model.avg对由LMER派生的一组混合效果广义线性模型(GLMM)进行多模型推断 . 我可以使用PREDICT来获取预测值,但由于随机效应,无法获得这些预测值的标准误差:
Error in predict.averaging(Mod.avg, newdata, se.fit = TRUE) :
'predict' for models '' caused errors
In addition: Warning messages:
1: In predict.merMod(object = <S4 object of class "lmerMod">, newdata = newdata, : cannot calculate predictions with both standard errors and random effects
我尝试过使用predictInterval和bootMer(merTools),但是他们无法处理model.avg对象:
Error in UseMethod("getME") :
no applicable method for 'getME' applied to an object of class "averaging"
在这种情况下,有没有人可以解决导出置信区间和标准误差的问题?