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
expand data at the beginning of the panelHi all, I try to create new missing values in a dataset, in order to obtain the same time period fo…
if else conditional of number of elements in a localHi, I am trying to set a condition within a nested loop. Now, the loop opens some folders; the cond…
Question about double quotesHi dear all, I want to rename all variabls. ----------------------- copy starting from the next line…
closest relative match based on multiple variables after exact matchingDear Statalisters, I have the following problem: I am trying to match two survey waves (let's call …
automatically creating year variable for panel dataHi, I am a beginner in Stata. recently I spent a lot of day in creating a panel data, I have a huge …
Subscribe to:
Post Comments (Atom)
0 Response to Abnormal return for everday in a year
Post a Comment