Skip to content

lme4 troubles

2 messages · Ben Bolker, Andrew C. Shaver

#
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 14-12-16 05:49 PM, Andrew C. Shaver wrote:
[I'm fine, but cc'ing to r-sig-mixed-models at r-project.org]
What version of lme4 are you now using (results of sessionInfo(),
or packageVersion("lme4") ?)

  Is there any chance you can provide a reproducible example?
Using one of the built-in examples from lme4 with the latest
(development) version of lme4 (although I think it should be identical
for these purposes to the CRAN version of lme4, 1.1-7):

library("lme4")
gm1 <- glmer(cbind(incidence, size - incidence) ~ period + (1 | herd),
                   data = cbpp, family = binomial,
                  verbose=TRUE, control=list(maxIter=1000))

gives

Warning in glmer(cbind(incidence, size - incidence) ~ period + (1 |
herd),  :
  Use control=glmerControl(..) instead of passing a list of class ?list?
Error in (function (optimizer = c("bobyqa", "Nelder_Mead"),
restart_edge = FALSE,  :
  unused argument (maxIter = 1000)

If I use

gm1 <- glmer(cbind(incidence, size - incidence) ~ period + (1 | herd),
                   data = cbpp, family = binomial,
                  verbose=TRUE,
                 control=glmerControl(optCtrl=list(maxfun=20000)))

it works (I don't get the specified error) -- but of course it would
be likely to work with this well-behaved example.
That's surprising.

  FWIW the max number of PIRLS iterations is hard-coded in the current
version of lme4, although you can adjust the tolerance (tolPwrss).
However, usually when this goes wrong there's some other problem
that has to/can be fixed in another way.  Again, a reproducible example
would be really useful ...
I'm a little surprised/confused by this one.
  Make sure you're running a clean R session and (re)install lme4
and blme from scratch?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEbBAEBAgAGBQJUkMiRAAoJEOCV5YRblxUH0ooH+Iw/dnfWtjDwO97X8aILcB9E
8rcS1i4QrpN5rAEWa5SnuQDNYNCzduYMxpxMsfUu1uMreTq7hG7axxP0vC4rZJxL
onyg1wGY2JIzvwpjSHm7sEEyokFIz/EGyeruptCTdCGvLDBIVr2bwA0SXa+AGSpk
Ase7quPY6RBra7K4a+OJqsj0IZXqocf+HQIMAqdIfqdaBhsuAMXXAeaCRNbxcdnT
yQlYyHUVDH/uyfeRBhSaQn+wAu7guBYRUjcuyBRYP0bhd1RjSxMov8WkoRpef60S
b0en8Nb03e+cGjQaxpXEZv1hxnsQPPOVUqCC041qIjshi9UppZpxKq47eQij6w==
=Mu75
-----END PGP SIGNATURE-----
1 day later
#
Hi Ben, 

Problems all down to me not having updated version of R running. Reinstalled and everything working perfectly now! 

Thanks, and sorry to bother you with this. 

Very best, 

Andrew