Hi,
For my finals thesis, I am conducting an event study looking into the abnormal returns received by firms whom contribute to US presidential election candidates. I am attempting to use the eventstudy2 program by Thomas Kaspereit.
At the moment, I am trying to analyse the 2016 election, looking at firms that contributed to Trump. I have 30 firms which are publicly listed and contributed over $25,000. I am essentially running 30 events each with the same event data - the date of the election.
This is my code:
But when I do so, I get the following message:
I have three files:
-earnings_surprises_trump.dta which is stored in memory (Contains: date, earnings_surprise, market_ref, security_id)
-factor_returns_trump2.dta (Contains: date, market_ref, market_return)
-security_returns_trump3.dta (Contains: security_id, date, market_ref, return, market_return)
Any suggestions about the reasons for the error with respect to the string / numeric problem would be most welcome.
I have been unable to generate png files yet but will continue to work on that.
Many thanks in advance,
Kirsty McKnight

For my finals thesis, I am conducting an event study looking into the abnormal returns received by firms whom contribute to US presidential election candidates. I am attempting to use the eventstudy2 program by Thomas Kaspereit.
At the moment, I am trying to analyse the 2016 election, looking at firms that contributed to Trump. I have 30 firms which are publicly listed and contributed over $25,000. I am essentially running 30 events each with the same event data - the date of the election.
This is my code:
Code:
use earnings_surprises_trump2 eventstudy2 security_id date using security_returns_trump3, re(return) model (MA) marketfile(factor_returns_trump_2) mar(market_return) idmar(market_ref) evlb(-1) evwub (3) car1LB(-1) car1UB(3)
Code:
Generating dateline.. succeeded, preparation of event list.. type mismatch r(109)
-earnings_surprises_trump.dta which is stored in memory (Contains: date, earnings_surprise, market_ref, security_id)
-factor_returns_trump2.dta (Contains: date, market_ref, market_return)
-security_returns_trump3.dta (Contains: security_id, date, market_ref, return, market_return)
Any suggestions about the reasons for the error with respect to the string / numeric problem would be most welcome.
I have been unable to generate png files yet but will continue to work on that.
Many thanks in advance,
Kirsty McKnight
Comment