[R] Plot lmer model with Effects package

Ben Bolker bbolker at gmail.com
Thu Oct 25 18:52:05 CEST 2012


Marte Lilleeng <mlilleeng <at> gmail.com> writes:

> 

 
 [snip]

> I have a simple model that i would like to plot with 95% CIs.
> It is like follows:
> m1<-lmer(Richness~Grazing+I(Grazing^2)+(1|Plot),family=poisson)
> 
> By using the effects package I get two plots, one for the linear term
> and one for the squared term.
> Q1: Can I get all in one? I.e. with one line for the whole model?
> Q2: Can I also visualize the random effects?

  It would probably be best to send this to the r-sig-mixed-models list.
You may want to look at the code at http://glmm.wikidot.com/faq for
generating predictions and confidence intervals from lmer fits.




More information about the R-help mailing list