小编phi*_*her的帖子

了解r lme4中混合模型的警告消息

我已经在lme4包中建立并运行了混合效应逻辑回归模型,以估计不同位置(细胞/栖息地)中鱼类占用的概率.数据框由对68条单独鱼类的1,207,140次观测组成.对于每个人(每天约1年),它描述了每个唯一位置的发生次数相对于所有位置的总发生次数.

这是基本模型:

    m.base = glmer(cbind(N,t.move-N) ~ jdate + snSurface.Area + Restoration..P.A. +    
    Release.Location+ Sex + (1|Station) + (0 + jdate|ID), data=allfishdat, family=binomial)
where N=# unique positions, t.move=total positions, jdate=julian date, Station=locations, ID=fish ID
Run Code Online (Sandbox Code Playgroud)

我收到以下警告消息:

Warning messages:
1: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv,  :
                Model failed to converge with max|grad| = 3349.26 (tol = 0.001)
2: In if (resHess$code != 0) { :
 the condition has length > 1 and only the first element will be used
3: In …
Run Code Online (Sandbox Code Playgroud)

r lme4 mixed-models

5
推荐指数
1
解决办法
9703
查看次数

标签 统计

lme4 ×1

mixed-models ×1

r ×1