[R-sig-ME] Predictions from lme and lmer models
Ben Bolker
bbolker @ending from gm@il@com
Sun Jan 6 01:00:34 CET 2019
See the "re.form" argument ... re.form=~0 or re.form=NA gives
population-level predictions (level-0). The interface has changed a bit
because lme4 can handle more complex models than nlme (specifically, it
can fit non-nested models, so "which random effects are included" is
potentially a more complex question than "which levels are included").
On 2019-01-05 4:29 p.m., Patrick Connolly wrote:
>
>
> The call to predict with lme models has an argument 'level' which, I
> understand, produces population predictions for level = 0 and group
> specific predictions for level = 1.
>
> There doesn't seem to be a similar argument for lmer (lme4 package)
> models. Is it just a matter of specifying the appropriate newdata
> data frame to achieve the same end? Or is there a more direct way?
>
> TIA
>
More information about the R-sig-mixed-models
mailing list