Re: [R] Marginal Predicitions from nlme and lme4

From: Rick Bilonick <>
Date: Wed 23 Aug 2006 - 08:39:24 EST

On Wed, 2006-08-23 at 06:43 +1000, Andrew Robinson wrote:
> Rick,
> if by marginal prediction, you mean the prediction without random
> effects, then use the "level" argument. See ?predict.lme or ?fitted.lme
> If not then I don't know :)
> Cheers
> Andrew
Thanks. I'm familiar with level in predict and fitted for lme. These allow you to select the fixed effects and/or the random effects. The marginal prediction integrates out the random effects and is what a GEE marginal model produces. From what I've read, the marginal effects seem to be less desirable than the fixed effects from an lme or a generalized lme. But I would still like to compute them for comparison.

Rick B. mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Wed Aug 23 08:43:14 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 23 Aug 2006 - 10:21:40 EST.

Mailing list information is available at Please read the posting guide before posting to the list.