lme4(e.g. 1.1-6) give false convergence warnings. There is a summary post on r-sig-mixed-models.
max|grad|but the model passes this test:
dd <- fit@optinfo$derivs with(dd,max(abs(solve(Hessian,gradient)))<2e-3)then you are seeing a false-positive warning, and the problem will disappear in future versions (1.1-7 and up).
control=glmerControl(optimizer="bobyqa"), or use this code to try your problem with a range of optimizers, to see if any of them work better.
lme4maintainers would be happy to hear from you.
library("devtools"); install_github("lme4",user="lme4")(These commands install the "master" (development) branch; if you want the release branch from Github add
install_github()approach requires that you build from source, i.e.
makeand compilers must be installed on your system -- see the R FAQ for your operating system; you may also need to install dependencies manually. You may need to specify
build_vignettes=FALSEif your system is missing some of the
install.packages("lme4", repos=c("http://lme4.r-forge.r-project.org/repos", getOption("repos")[["CRAN"]]))
It is possible to install (but not easily to check)
lme4 at least as recently as 1.1-7.
--no-inst; this is necessary in order to prevent R from getting hung up by the
R CMD checkis difficult, but possible if you hand-copy the contents of the
instdirectory into the installed package directory ...
lme4.0is a maintained version of lme4 back compatible to CRAN versions of lme4 0.99xy, mainly for the purpose of reproducible research and data analysis which was done with 0.99xy versions of lme4.
getME(<mod>, "..")which is compatible (as much as sensibly possible) with the current
lme4's version of
convert_old_lme4()function to take a fitted object created with
lme4<1.0 and convert it for use with
install.packages("lme4.0", repos=c("http://lme4.r-forge.r-project.org/repos", getOption("repos")[["CRAN"]]))(if the binary versions are out of date or not available for your system, please contact the maintainers).