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
repeated time values within panelHi all, I have sectoral data (isiccomb1) per year and country. I am getting the error message "repe…
Creating a pooled variable with survey dataHello Everyone, I am using a large survey (non panel) data set and would like to restructure multip…
what did Stata do when we run a regression on unbalaned data?I am learning how to run a difference in difference model, and my code is areg y treat1996-evergm199…
Problem with xtserialHi everyone, I am running a fixed-effects model with robust standard errors and I'd like to test for…
How could I change the color on a scatter plot based on conditions?Basically I want to change the color of everything with a value greater than x, and also add label t…
Subscribe to:
Post Comments (Atom)
0 Response to Abnormal return for everday in a year
Post a Comment