[R-sig-ME] predictions to newdata by LMM through lmer

Ben Bolker bbolker at gmail.com
Wed Aug 14 08:13:00 CEST 2013


Tetsuya Michinaka <zhangyf at ...> writes:

> 
> Hi,
> 
> I am fitting a linear mixed model by lme4.
> It is like this:
> m1<-lmer(TF~ POP + AG*ELC + (1+AREA| Province) + (1| AREA)+ (1| 
> DIST),DATA, REML=TRUE).
> I wonder if I can predict TF values by a new dataset, considering fixed 
> and random effects.
> Would you please give me some advice?
> Thanks a lot really.
> Tetsuya Michinaka
> 
> 

  You could try installing the development version of the package,
e.g. from R-forge (e.g. see 
https://github.com/lme4/lme4/blob/master/README.md ) and take a look
at ?predict.merMod ...



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