【发布时间】:2018-09-25 12:40:53
【问题描述】:
我想知道是否可以接受同时使用固定因子和随机因子。我的理解是,这不是一般做法。
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3881361/
http://avesbiodiv.mncn.csic.es/estadistica/curso2011/regm26.pdf
在以下模型中,我使用Sp 作为固定因子和随机因子,我的模型不收敛。
Model1 <- lmer (C1 ~ Place*Voicing*Length*Sp +
(1+Place+Voicing+Length|Sp),data =
C1,control=lmerControl(optCtrl=list(maxfun=50000)))
anova (Model1)
str(LME_Model1)
$ Sp : Factor w/ 5 levels
$ Place : Factor w/ 3 levels
$ Voicing : Factor w/ 2 levels
$ Length : Factor w/ 2 levels
Warning messages:
1: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv, :
unable to evaluate scaled gradient
2: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv, :
Model failed to converge: degenerate Hessian with 4 negative eigenvalues
如果我从固定因子中排除Sp,则模型收敛。
有人可以解释一下是否可以使用Sp 作为固定因素?
【问题讨论】: