The model that I tried to specify was:
M4 <- glmer(CORT_pgmm~AO_Ause+(1|St),data=belcher,family=Gamma(link="log"), control=glmerControl(optimizer="bobyqa"))
While doing this I got the following warning message using glmer with "bobyqa"
and "Nelder_Mead"
as optimizers.
Warning message:
In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv, :
Model failed to converge with max|grad| = 0.0146734 (tol = 0.001, component 1)
I followed the instructions given by Mr. Ben Bolker in a previous answer
Once I change the optimizers to the ones contained in the optimx
package the warning message stop appearing.
M4 <- glmer(CORT_pgmm~AO_Ause+(1|St),data=belcher,family=Gamma(link="log"), control=glmerControl(optimizer="optimx",optCtrl=list(method="nlminb")))
Still, I am not sure how to know if this is the correct way to proceed in my case. How can I be sure about it?
My apologies if I did not write this correctly as it is my first post. Thank you in advance for your answers.