【发布时间】:2015-05-02 03:18:43
【问题描述】:
我的数据是比率数据。所以我尝试使用lme4() 和二项式模型来分析它。
这是我的代码:
fate.reP = glmer(predated~type+(1|island),data=fate.rate,family="binomial")
这是一组样本数据:
type cluster tree predated
B B7-1 1 0.48
B B7-1 2 0.66
B B7-2 3 0.18
M I63 8 0.55
M I63 9 0.6
M I63 20 0.41
M I63 21 0.42
S I14 5 0.75
S I14 17 0.53
S I15 6 0.23
S I15 7 0.03
当我运行模型时,它显示:
Error: (maxstephalfit) PIRLS step-halvings failed to reduce deviance in pwrssUpdate
In addition: Warning message:
In eval(expr, envir, enclos) : non-integer #successes in a binomial glm!
我的数据中是否存在错误,或任何其他错误? 我正在为 Windows 使用 R 3.0.3。
【问题讨论】: