Skip to content

The issue of increasing maximum number of iterations

2 messages · Martin Stjernman, Ben Bolker

#
Martin Stjernman <Martin.Stjernman at ...> writes:
Looking at the source code in lmer.R, this seems like
a moderately obvious hole: on or about line 714 (I may be
off by a couple of lines) we have

    if (missing(verbose)) verbose <- cv$msVerbose
### FIXME: issue a warning if the model argument is FALSE.  It is ignored. 

 adding the lines

    FL$dims["mxit"] <- cv$maxIter
    FL$dims["mxfn"] <- cv$maxFN

  appears to work: running

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

produces a model with the correct iteration number listed in its
guts.

  The next question is whether you or someone at your institution
is capable of modifying lmer.R appropriately and rebuilding the
package ...