Control the maximum number of iterations in lme4 1.0. *

I evaluated the random coefficient model using the glmer command (from the lme4 package) in R. The command looks like follwing.

(logit.full <-
   glmer(event ~ 
    + V12 * I(V1 - 2)
    + V13
    + V9 * I(V5 - 2)
    + V11
    + V10
    + V2
    + V3
    + V4
    + V6 + V7 + V8
    + (1 + V6 + V7 + V8 | V14),
    family=binomial("logit"), data=dataset, 
    verbose=TRUE, control=list(maxIter=400)))

Over the past three months, the model has been operating normally. Now, after upgrading the package to 1.0-4, there seems to be a problem with the "control" command, and I get the following error message:

Warning in glmer(event ~ a1+a2+a3 :
  Use control=glmerControl(..) instead of passing a list of class "list"
Error in function (optimizer = c("bobyqa", "Nelder_Mead"), restart_edge = FALSE,  : 
  unused argument(s) (maxIter = 400)

Does anyone know how to solve this problem?

+3
source share
1 answer

From ?glmerControl:

optCtrl: a ' ,            (. "Nelder_Mead", bobyqa).            , "Nelder_Mead" "bobyqa use" maxfun            ,           , - "            , " maxit.

, .

control=glmerControl(optCtrl=list(maxfun=...)) .

, FAQ, (/ ).

+4

Source: https://habr.com/ru/post/1613559/


All Articles