Re: [R] Problem with lme4

From: Douglas Bates <bates_at_stat.wisc.edu>
Date: Tue, 15 May 2007 16:06:19 -0500

On 5/15/07, Seyed Reza Jafarzadeh <srjafarzadeh_at_gmail.com> wrote:
> It should be
>
> > lmer(success ~ yearF + (1 | bandnumb), data=quality, family = binomial, method = PQL)

It has to be method = "PQL" (the quotes are important) except that the PQL method is no longer an option in lmer. Beginning with lme4_0.99875-0, which was uploaded today, the Laplace approximation is the default method for generalized linear mixed models.

It would be simplest to use

lmer(success ~ yearF + (1|bandnumb), quality, binomial)

> On 5/15/07, Stefan Grosse <singularitaet@gmx.net> wrote:
> > the lme4 function you want is probably lmer()
> > type
> > ?lmer
> >
> > btw. your R is very old we are at 2.5.0 ...
> >
> > Stefan
> >
> > Amelie LESCROEL wrote:
> > > Hi - I'm having a problem trying to use the function GLMM() from lme4. Here
> > > is what happens:
> > >
> > >
> > >
> > >
> > >> library(lme4)
> > >>
> > >
> > > Loading required package: Matrix
> > >
> > > Loading required package: lattice
> > >
> > >
> > >> f1 <- GLMM(success~yearF, data=quality, random=~1|bandnumb,
> > >>
> > > family=binomial, method=PQL)
> > >
> > > Error: couldn't find function "GLMM"
> > >
> > >
> > >
> > > I remember having used lme4 before, without any problem. Can someone help me
> > > understanding what is wrong? I'm using R 2.2.1, could that be a problem? I
> > > also tried installing lme4 again, and updating the package, with no success.
> > >
> > >
> > >
> > > Thanks for your help,
> > >
> > >
> > >
> > > Amelie
> > >
> > >
> > > [[alternative HTML version deleted]]
> > >
> > > ______________________________________________
> > > R-help_at_stat.math.ethz.ch mailing list
> > > https://stat.ethz.ch/mailman/listinfo/r-help
> > > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> > > and provide commented, minimal, self-contained, reproducible code.
> > >
> > >
> > >
> >
> > ______________________________________________
> > R-help_at_stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> >
>
> ______________________________________________
> R-help_at_stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 15 May 2007 - 21:10:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 15 May 2007 - 21:32:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.