Skip to content
Prev 17366 / 398513 Next

Avoiding the mean

On Fri, 22 Feb 2002, Christian Hennig wrote:

            
The answer to this question is *always* "try it and see" (Rprof or
system.time).  It probably isn't faster, but the answer will depend on the
number of rows and columns in your data and possibly on other factors.
It's unusual for computing the mean or covariance to take enough time to
worry about.
Probably using a subset would be faster, but again, you can easily try it
and see.


	-thomas

Thomas Lumley			Asst. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._