I am trying to use dredge
from the R package MuMIn
with a global binomial glmer
model. I find that I need to specify the optimizer with control = glmerControl(optimizer="bobyqa")
for convergence. However, when I go to use dredge
, I get an error. If I reduce the number of predictors in the model, I can remove the bobyqa
specification, get convergence, and use dredge. Any way I can get dredge
to go with glmerControl(optimizer="bobyqa")
?
test.glob=glmer(exploitpark~X + as.factor(Y) + Z + A + B + (1|ID),
family=binomial(),
glmerControl(optimizer="bobyqa"), data=df)
options(na.action = "na.fail") # prevent fitting models to different datasets
test.Set = dredge(test.glob, beta=c("partial.sd"), extra = c("R^2"))
Fixed term is "(Intercept)"
Error in glm.control(optimizer = c("bobyqa", "bobyqa"), calc.derivs = TRUE, : unused arguments (optimizer = c("bobyqa", "bobyqa"), calc.derivs = TRUE, use.last.params = FALSE, restart_edge = FALSE, boundary.tol = 1e-05, tolPwrss = 1e-07, compDev = TRUE, nAGQ0initStep = TRUE, checkControl = list(check.nobs.vs.rankZ = "ignore", check.nobs.vs.nlev = "stop", check.nlev.gtreq.5 = "ignore", check.nlev.gtr.1 = "stop", check.nobs.vs.nRE = "stop", check.rankX = "message+drop.cols", check.scaleX = "warning", check.formula.LHS = "stop", check.response.not.const = "stop"), checkConv = list(check.conv.grad = list( action = "warning", tol = 0.001, relTol = NULL), check.conv.singular = list(action = "message", tol = 1e-04), check.conv.hess = list(action = "warning", tol = 1e-06)), optCtrl = list())