- I have encountered a problem whilst trying to calculate the excess returns for every company at every time period. I have variables "Returns" and "Rf" (risk free). I want to create a variable: "Exc_returns" for every return of every month for every company (CompanyName). The problem is that my variable "Rf" only ranges from 31-1-1980 to 31-12-2019, whereas I have a lot of companies that that all range within the time span of 31-1-1980 to 31-12-2019, but they vary in when their returns appear. Another way of wording this, I have 480 observations for the risk-free rate (1 observation for every month), but I have 38.284 observations of returns for every company, each spanning a different timeline).
Thanks in advance and please let me know if you need any additional information.
0 Response to Calculating excess returns for every company for every date
Post a Comment