lmeControl {nlme}  R Documentation 
The values supplied in the lmeControl()
call replace the
defaults, and a list
with all settings (i.e., values for
all possible arguments) is returned. The returned list is
used as the control
argument to the lme
function.
lmeControl(maxIter = 50, msMaxIter = 50, tolerance = 1e6, niterEM = 25, msMaxEval = 200, msTol = 1e7, msVerbose = FALSE, returnObject = FALSE, gradHess = TRUE, apVar = TRUE, .relStep = .Machine$double.eps^(1/3), minAbsParApVar = 0.05, opt = c("nlminb", "optim"), optimMethod = "BFGS", natural = TRUE, sigma = NULL, ...)
maxIter 
maximum number of iterations for the 
msMaxIter 
maximum number of iterations
for the optimization step inside the 
tolerance 
tolerance for the convergence criterion in the

niterEM 
number of iterations for the EM algorithm used to refine
the initial estimates of the random effects variancecovariance
coefficients. Default is 
msMaxEval 
maximum number of evaluations of the objective
function permitted for nlminb. Default is 
msTol 
tolerance for the convergence criterion on the first
iteration when 
msVerbose 
a logical value passed as the 
returnObject 
a logical value indicating whether the fitted
object should be returned when the maximum number of iterations is
reached without convergence of the algorithm. Default is

gradHess 
a logical value indicating whether numerical gradient
vectors and Hessian matrices of the loglikelihood function should
be used in the internal optimization. This option is only available
when the correlation structure ( 
apVar 
a logical value indicating whether the approximate
covariance matrix of the variancecovariance parameters should be
calculated. Default is 
.relStep 
relative step for numerical derivatives
calculations. Default is 
opt 
the optimizer to be used, either 
optimMethod 
character  the optimization method to be used with
the 
minAbsParApVar 
numeric value  minimum absolute parameter value
in the approximate variance calculation. The default is 
natural 
a logical value indicating whether the 
sigma 
optionally a positive number to fix the residual error at.
If 
... 
further named control arguments to be passed, depending on

a list with components for each of the possible arguments.
JosÃ© Pinheiro and Douglas Bates bates@stat.wisc.edu; the
sigma
option: Siem Heisterkamp and Bert van Willigen.
# decrease the maximum number iterations in the ms call and # request that information on the evolution of the ms iterations be printed str(lCtr < lmeControl(msMaxIter = 20, msVerbose = TRUE)) ## This should always work: do.call(lmeControl, lCtr)