[R] qu: predict with lmer (lme4) or other ways to get classification accuracy

From: T. Florian Jaeger <tiflo_at_stanford.edu>
Date: Wed 03 May 2006 - 12:52:09 EST


I am using lmer (from the package lme4) to predict a binary response variable (REL) from a bunch of fixed effects and two random effects (Speaker_ID and NPhead_lemma):

fit <- lmer(REL ~

        + (1|Speaker_ID) + (1|NPhead_lemma),
	method="Laplace", model=T, x=T)

I would like to get classification accuracies for the derived model, or even do some evaluation (cross-validation), but I cannot find a way to get to the predicted values. As far as I can tell no predict method has been implemented for lmer, right? I also was trying to figure out whether lmer stores the predicted values somewhere (I read the documentation and implementation summary, /library/lme4/doc/Implementation.pdf).

Many thanks for your help and my apologies if I overlooked something really simple.


T. Florian Jaeger
Ph.D. student
Linguistics Department,
P: +1 (650) 725 2323
F: +1 (650) 723 5666
U: http://www.stanford.edu/~tiflo/

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Wed May 03 13:16:00 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 Mon 08 May 2006 - 02:10:06 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.