Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: speed [was: Hi guys]


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: speed [was: Hi guys]
Date   Fri, 12 Sep 2008 19:27:47 +0100

Maarten and Peter [Tony] are both right, but beyond that this may not be
a matter of opinion,  but it is a matter of circumstances. 

The times for this task compared with others will depend on the precise
characteristics of the dataset(s) being sorted and -- even on a
particular machine and operating system -- on quite what memory is
available, and so on, and so forth. 

I'd assert that the most relevant comparison is with -reshape-, -sort-,
-reshape-. Looping over the observations in Stata is not a competitor. 

Nick 
n.j.cox@durham.ac.uk 
	
Lachenbruch, Peter

If you set more off, set rmsg on will give the timing you want, unless
I'm missing something.

Maarten buis

--- Ashim Kapoor <ashimkapoor@gmail.com> wrote:
> Some one emailed and told me that my code is NOT faster. I dont agree
> with him. But if you have an opinion on that please let me know.

This is not a matter of opinions: Try it out and use -timer- to see
which one is faster. see: -help timer-


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index