[R-sig-ME] unused argument(s) HELP

Douglas Bates bates at stat.wisc.edu
Wed Aug 15 21:48:14 CEST 2012


On Wed, Aug 15, 2012 at 2:08 PM, Karina Villegas <villegaskary at 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 at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
>



More information about the R-sig-mixed-models mailing list