[R] Performance problem

From: <gerhard.krennrich_at_basf-ag.de>
Date: Tue 20 Jul 2004 - 19:23:25 EST


Dear all,
I have a performance problem in terms of computing time. I estimate mixed models on a fairly large number of subgroups (10000) using lme(.) within the by(.) function and it takes hours to do the calculation on a fast notebook under Windows.
I suspect by(.) to be a poor implementation for doing individual analysis on subgroups.
Is there an alternative and more efficient way for doing by-group processing within lme(.).

Here some code to give you a glimpse
gfit <- by(longdata, gen, function(x) lme(fixed=response ~ dye + C(treat, base = 4 ),

            data=x,random =~ 1 | slide) )

Thanks in advance & regards
Gerhard Krennrich



BASF Aktiengesellschaft
GVC/S - B009
Gerhard Krennrich
Tel.: +49 621 60-78299

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

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:37:09 EST