我想拟合一个混合效应模型,并得到按AIC排名的前十个候选模型列表。对于固定效应模型,我使用glmulti:glmuli
函数来拟合模型,并使用glmulti:weightable
函数得到按AIC排名的候选模型列表,其输出如下:
## model aicc weights
## 1 outcome ~ 1 + ist + hwt 188.3154 0.6044616289
## 2 outcome ~ 1 + ist + hwt + troadn 190.3552 0.2179837514
## 3 outcome ~ 1 + hwt 191.7862 0.1065837756
## 4 outcome ~ 1 + hwt + troadn 193.5704 0.0436764670
## 5 outcome ~ 1 + ist 195.8793 0.0137685009
## 6 outcome ~ 1 + ist + troadn 196.3339 0.0109688767
## 7 outcome ~ 1 + troadn 200.0687 0.0016949662
## 8 outcome ~ 1 201.4210 0.0008620334
有没有相应的软件包可以使用混合效应模型完成这些步骤? 我使用了lme4::glmer
函数来拟合混合效应模型,但它不会产生基于AIC得分的前十个最佳模型列表。是否有其他可替代的函数/软件包,或者混合效应模型不使用此进程?
我想获得以下目标的前10个最佳候选模型列表:
(outcome ~ sex + season + year + (1 | obsname) + (1 | bird), data = detect, family = binomial)