Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: time elapsed within 'for' loops


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: time elapsed within 'for' loops
Date   Sun, 14 Nov 2004 18:26:37 -0000

Sure. This wasn't what David asked. Nevertheless,  
he has to detach himself from -for- so that the 
commands of interest are those monitored by 
the profiler. 

Nick 
n.j.cox@durham.ac.uk 

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of 
> Mark Schaffer
> Sent: 14 November 2004 17:22
> To: statalist@hsphsun2.harvard.edu
> Subject: RE: st: time elapsed within 'for' loops
> 
> 
> -profiler- should still give David almost what he wants, even 
> if he doesn't
> use -foreach-.  I just tried a -reshape- with -profiler-, and 
> most of the
> time spent reshaping was in the the subroutine -Wide-.  
> Presumably there is
> another subroutine -Long-.  If these are where most of the 
> time is spent
> reshaping David's data, he'll something not too far from the 
> right answer to
> his question.
> 

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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