Dear all,
Can someone tell me how I can monitor the convergence of a gamm4 run using the new lmer-1.04 modular functions and the iprint or verbose arguments?
(I wish to debug a warning message re: "failure to converge in 10,000 iterations".)
In the past, I successfully used "options(verbose=T)" to turn on monitoring. But now that option appears to have no effect.
After examining the documentation/code for gamm4,? glFormula/updateGlmerDevfun, lmerControl and Nelder_Mead,?I tried (using the example from gamm4 helpfile):
lr.fit0 <- gamm4(y~s(x0)+s(x1)+s(x2), family=binomial, data=dat, control=lmerControl(optCtrl=list(iprint=20)))
and got an error:
Error in updateGlmerDevfun(devfun, b$reTrms, ...) :
? unused argument (control = list(optimizer = "Nelder_Mead", restart_edge = TRUE, checkControl = list(check.nobs.vs.rankZ = "warningSmall", check.nobs.vs.nlev = "stop", check.nlev.gtreq.5 = "ignore", check.nlev.gtr.1 = "stop"), optCtrl = list(iprint = 20)))
In addition: Warning message:
In (function (npt = min(n + 2L, 2L * n), rhobeg = NA, rhoend = NA,? :
? unused control arguments ignored
Similar attempts, using more or less nesting in the control= option, led to similar error messages.
I am using R-3.0.1, mgcv 1.7-26, gamm4 0.2-1, lmer 1.04, Matrix 1.0-12 on a Fedora 18 x64 laptop.
Transcript copied/pasted below
Damian Collins | Biometrician | Primary Industries
Industry & Investment NSW | Elizabeth Macarthur Agricultural Institute | Woodbridge Rd, Menangle NSW 2568 | Private Bag 4008, NARELLAN NSW 2567
T: 02 4640 6451 | F: 02 4640 6300 | M: 0410 271 144 | E: damian.collins at industry.nsw.gov.au
----- Transcript (non-essential lines removed ...)? - run on Fedora 18 x64 machine? -----
R version 3.0.1 (2013-05-16) -- "Good Sport"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: x86_64-redhat-linux-gnu (64-bit)
...
Loading required package: Matrix
Loading required package: lattice
Loading required package: lme4
Loading required package: mgcv
Loading required package: nlme
Attaching package: ‘nlme’
The following object is masked from ‘package:lme4’:
??? lmList
This is mgcv 1.7-26. For overview type 'help("mgcv-package")'.
This is gamm4 0.2-1