Good day everybody,
I am new to Stata, and came up with an issue regarding the event study. I use the command from Princeton to calculate abnormal returns:
forvalues i=1(1)N { /*note: replace N with the highest value of id */ l id company_id if id==`i' & dif==0 reg ret market_return if id==`i' & estimation_window==1 predict p if id==`i' replace predicted_return = p if id==`i' & event_window==1 drop p } How can I modify this code to make it calculate abnormal returns for everyday in 12-month data, instead of for only event window? Bests <3
Related Posts with Abnormal return for everday in a year
Using python integrated in Stata version below 16Hi All, I'm trying to install python and its package in Stata version 15.1 SE but do not success du…
Reshape the data-set into a specified formI have a data-set contains the following variables. And, I want to reshape the data-set into a speci…
Error in lassologitI am using lasso for model selection and predictions. The code looks as follows: Code: lassologit…
Not a numberHi, While trying to import a CSV dataset with Covid data for France, I realized there are numeric v…
removing intercepts from groups of dummy variables in panel datahi there, so i have a panel regression of 174 nations and their GDP growth for every year 1994-2017,…
Subscribe to:
Post Comments (Atom)
0 Response to Abnormal return for everday in a year
Post a Comment