Hi everyone,
I'm currently using the eventstudy2 command in Stata for my thesis, and I've run into a problem I’m hoping someone here has encountered before.
My setup involves running five separate event studies. Each study uses its own dataset, event list, and market return file. The first run works perfectly and completes without issue. However, when I attempt to run the second study, Stata gets stuck at the message:
Merging event dates and stock market data...
It eventually freezes or crashes completely. The strange thing is:
Has anyone experienced eventstudy2 freezing at the merge step?
If so, how did you resolve it?
I've attached the code I'm using below — but again, it works fine for the first country, which makes me think the issue may be something else.
Any advice or ideas would be incredibly appreciated!
Thank you so much in advance
I'm currently using the eventstudy2 command in Stata for my thesis, and I've run into a problem I’m hoping someone here has encountered before.
My setup involves running five separate event studies. Each study uses its own dataset, event list, and market return file. The first run works perfectly and completes without issue. However, when I attempt to run the second study, Stata gets stuck at the message:
Merging event dates and stock market data...
It eventually freezes or crashes completely. The strange thing is:
- I’m using the same code (adjusted only for the file paths)
- The second dataset is smaller in size (62 events)
- I've already tried clear all, restarting Stata, and running on two different computers
Has anyone experienced eventstudy2 freezing at the merge step?
If so, how did you resolve it?
I've attached the code I'm using below — but again, it works fine for the first country, which makes me think the issue may be something else.
Any advice or ideas would be incredibly appreciated!
Thank you so much in advance
Code:
use "\\uwfpcluster03.uw.lu.se\ag5840be-s$\Desktop\Thesis\Norway\event_date_norway.dta" cd "\\uwfpcluster03.uw.lu.se\ag5840be-s$\Desktop\Thesis\Norway" eventstudy2 firmid date using "\\uwfpcluster03.uw.lu.se\ag5840be-s$\Desktop\Thesis\Norway\stock_data_norway.dta", returns(ri) model(MA) marketfile(mkt_norway) marketreturns(mkt) evwlb(-3) evwub(3) eswlb(-210) eswub(200) minevw(7) minesw(200) car2LB(-2) car2UB(2) car3LB(-1) car3UB(1)
Comment