[R] lm/lme cross-validation

From: <Arne.Muller_at_sanofi-aventis.com>
Date: Tue 31 May 2005 - 20:34:00 EST


is there a special package/method to cross-validate linear fixed effects and mixed effects models (from lme)? I've tried cv.glm on an lme (hoping that it may deal with any kind of linear model ...), but it raises an error:

Error in eval(expr, envir, enclos) : couldn't find function "lme.formula"

so I guess it's not dealing with an lme.

I've realized that removing randomly some lines from the data frame used for lme strongly changes the the estimates and reduces the correlation between fitted and actual values. Therefore I'd like to get a more "realistic" view of the prediction performance.

Any ideas are welcome,



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue May 31 20:41:25 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:16 EST