[R] Problem with lme4

Douglas Bates bates at stat.wisc.edu
Tue May 15 23:06:19 CEST 2007


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 at 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.
>



More information about the R-help mailing list