[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Took forever to run an event study program
1. Getting to your problem, have you given Stata more memory ? If
you are running this program locally, then it could be the case
that your system has only given Stata a limited amount of memory
which will directly affect the running time of your program. (You
can check how much memory your system has already allocated Stata
using the 'memory' command and then give Stata more memory using
the 'set mem' command.)
2. Finally, let me also say that you should not really be surprised
if Stata takes you 30 minutes. I have run programs that do maximum
likelihood estimation or arellano-bond that have taken several days
(sometimes weeks) to finish. I very often have to run programs that
I have to start just before I leave the office and leave it running
Quoting SamL <email@example.com>:
> Hmm. Thirty minutes=forever. So, how long has my job, now on
> eleventh day, taken? ;-)
> Take care.
> On Wed, 14 Mar 2007, Nian Huang wrote:
> > Could someone who knows about the event study (Finance or
> > area) in Stata give me some hints? My stata took too long to
> run a
> > event study program.
> > My version is Intercool Stata.
> > I have around 1,300 events. For each event, I need to calculate
> > (cumulative abnormal return) around the event based on the
> > model.
> > The event window is 3 days (-1, 1). The CAR is totalled for
> the 3 days period.
> > The estimation window is 241 days (-250, -10)
> > In Stata, for each event, a simple linear regression will be
> > around the estimation window. Then based on the fitted line,
> > will be calculated for the 3-day event window. Since I have
> > 1,300 events, Stata will do the same routine around 1,300
> > I ran the program several times, and everytime it would take
> more than
> > 30 minutes to finish the task.
> > I asked some of my colleagues--unfortunately, they use SAS
> instead of
> > Stata, and they said for the task, it only takes around several
> > seconds in SAS.
> > I want to know whether any Stata users have the similar
> > while running a event study program.
> > Is there any way to improve the program's efficiency?
> > Thank you very much.
> > *
> > * 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/
> * 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/
* For searches and help try: