Thank you very much

In the help of these functions, the maximum number of iterations by default
is 50, but if I ask for a smaller number of iterations to my model, it
shows me this error now:

> LevelModel1 <- lme(PBC ~ Sex*Dur.nurse, random=~Sex|Trip, data=Dataset,
control=lmeControl(maxIter=50))
Error in lme.formula(PBC ~ Sex * Dur.nurse, random = ~Sex | Trip, data =
Dataset,  :
  nlminb problem, convergence error code = 1
  message = iteration limit reached without convergence (9)
> LevelModel1 <- lme(PBC ~ Sex*Dur.nurse, random=~Sex|Trip, data=Dataset,
control=lmeControl(maxIter=49))
Error in lme.formula(PBC ~ Sex * Dur.nurse, random = ~Sex | Trip, data =
Dataset,  :
  nlminb problem, convergence error code = 1
  message = iteration limit reached without convergence (9)
> LevelModel1 <- lme(PBC ~ Sex*Dur.nurse, random=~Sex|Trip, data=Dataset,
control=lmeControl(maxIter=40))
Error in lme.formula(PBC ~ Sex * Dur.nurse, random = ~Sex | Trip, data =
Dataset,  :
  nlminb problem, convergence error code = 1
  message = iteration limit reached without convergence (9)

Why?


Karina


2012/8/15 Douglas Bates <bates@stat.wisc.edu>

> On Wed, Aug 15, 2012 at 2:08 PM, Karina Villegas <villegaskary@gmail.com>
> wrote:
> > Dear R experts:
> >
> > I am running R version 2.12.1 on Windows 2007. I am studying the effects
> > maternal behavior in the body condition of sea lion pups from California.
> >
> > I specified my model as follows:
> >
> > LevelModel1 <- lme(PBC ~ Sex*Dur.nurse, random=~Sex|Trip, data=Dataset,
> > max.iter=100)
> >
> > *See output below:*
> > Error in lme(PBC ~ Sex * Dur.nurse, random = ~Sex | Trip, data =
> Dataset,  :
> >   unused argument(s) (maxiter = 100)
>
> There is no maxiter argument to the lme function.  You want to specify it
> as
>
> control=list(maxIter=100)
>
> (The upper-case 'I' in maxIter is important.)
> > Anyone can help me with the error that makes the output? Please
> >
> > Thanks
> > Karina
> >
> >
> > --
> > Biol. Karina Villegas Cervantes
> > Estudiante de Maestría PCMyL - UNAM
> >
> > Laboratorio de Ecologia de Pinnipedos Burney J. Le Boueuf.
> > CICIMAR-IPN
> > Av. Instituto Politecnico Nacional s/n.Col.Playa Palo de Santa Rita
> > La Paz Baja California Sur, Mexico.
> >
> >         [[alternative HTML version deleted]]
> >
> >
> > _______________________________________________
> > R-sig-mixed-models@r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
> >
>



-- 
Biol. Karina Villegas Cervantes
Estudiante de Maestría PCMyL - UNAM

Laboratorio de Ecologia de Pinnipedos Burney J. Le Boueuf.
CICIMAR-IPN
Av. Instituto Politecnico Nacional s/n.Col.Playa Palo de Santa Rita
La Paz Baja California Sur, Mexico.

	[[alternative HTML version deleted]]

