I am trying to conduct an event study, but am running into an error when computing abnormal returns.
I have a dateframe consisting of Firm ID, Date, Stock Return, Market Return.
The returns are formated as numeric.
I want to create a new column, "AR" where I subtract the market return from the stock return. However, when I do this, I get the "Replacement has 0 rows, data as X"-error. I have tried using na.omit, but that did not work either.
Any help?