I would like to know if it is acceptable to use a factor as both fixed and random. My understanding is that it is not a general practice.
In the following model, I am using Sp as a fixed as well as random factor, and my model does not converge.
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
If I exclude Sp from the fixed factors, then the model converges. Could someone explain whether it is ok to use Sp as a fixed factor?
Thanks
Aucun commentaire:
Enregistrer un commentaire