in order to be able to calculate non-parametric significance tests when doing an event study following the DSS Princeton explanation
HTML Code:
https://dss.princeton.edu/online_help/stats_packages/stata/eventstudy.html
1. The original code (merely adjusted by my variable names):
Code:
gen pred_ret10=. forvalues i=1(1)754 { l id group_id if id==`i' & dif==0 reg co_ret mkt_ret if id==`i' & est_win1==1 predict p if id==`i replace pred_ret10=p if id==`i' & evt_win10==1 drop p }
Code:
gen pred_ret10=. forvalues i=1(1)754 { l id group_id if id==`i' & dif==0 reg co_ret mkt_ret if id==`i' & est_win1==1, robust predict p if id==`i replace pred_ret10=p if id==`i' & evt_win10==1 drop p }
HTML Code:
https://www.eventstudytools.com/significance-tests
Looking forward to your answers.
Best,
Max
0 Response to Adjusting the DSS Stata 'Prediction of normal returns formula'
Post a Comment