[R] A question on the library lme4

Luis Fernando Chaves lchaves at strix.ciens.ucv.ve
Sun Apr 24 03:29:25 CEST 2005


Hi,

I ran the following model using nlme:

model2<-lme(log(malrat1)~I(year-1982),random=~1|Continent/Country,data=wbmal10)

I'm trying to run a Poisson GlMM to avoid the above transformation but I 
don't know how to specify the model using lmer in the lme4 library:

model3<-lmer((malrat1)~I(year-1982) + ??,data=wbmal10,family=poisson)

How can I introduce a random factor of the form= ~1|Continent/Country?

Thanks;

-- 
Luis Fernando Chaves




More information about the R-help mailing list