[R] lmer and mixed effects logistic regression
Göran Broström
goran.brostrom at gmail.com
Tue Jun 20 20:27:03 CEST 2006
On 6/19/06, Rick Bilonick <rab45+ at pitt.edu> wrote:
> On Sun, 2006-06-18 at 13:58 +0200, Douglas Bates wrote:
> > If I understand correctly Rick it trying to fit a model with random
> > effects on a binary response when there are either 1 or 2 observations
> > per group.
If you look at Rick's examples, it's worse than that; each group
contains identical observations (by design?).
May I suggest:
> glm(y ~ x, family = binomial, data = unique(example.df))
I think lmer gives a very sensible answer to this problem.
Göran
More information about the R-help
mailing list