Hello,
I am performing an event study using SUR regression, where the abnormal stock return is shown by the coefficient "dummyEvent". The output shown below is a subset of 3 out of a total of 85 firms for which the SUR is run. Now I would like to calculate the average of the coefficient "dummyEvent" of all 85 regressions of the SUR and store it in a new variable. Reading other threads and Stata's help page, I came across the possibility to read out the individual coefficients via the following code.
One could sum the coefficients and divide by the number of companies, however this procedure is cumbersome for 85 companies in the SUR regression. Does anyone have any ideas on how to solve it more efficiently? Maybe with a foreach loop?
Best,
Oscar
I am performing an event study using SUR regression, where the abnormal stock return is shown by the coefficient "dummyEvent". The output shown below is a subset of 3 out of a total of 85 firms for which the SUR is run. Now I would like to calculate the average of the coefficient "dummyEvent" of all 85 regressions of the SUR and store it in a new variable. Reading other threads and Stata's help page, I came across the possibility to read out the individual coefficients via the following code.
Code:
matrix b = e(b) display el(b,1,3) el(b,1,7) el(b,1,11)
Code:
Coef. Std. Err. z P>z [Interval] Amazon Dow Jones .5122257 .0651809 7.86 0.000 .3844734 .639978 dummyDayBefore -.0005352 .0069166 -0.08 0.938 -.0140915 .0130212 dummyEvent .0023194 .0069305 0.33 0.738 -.0112642 .0159029 _cons -.0005643 .0006683 -0.84 0.398 -.0018742 .0007455 Tesla DowJones 1.542822 .0984094 15.68 0.000 1.349943 1.735701 dummyDayBefore -.0095792 .0104426 -0.92 0.359 -.0300464 .0108879 dummyEvent .0006608 .0104636 0.06 0.950 -.0198475 .0211691 _cons -.0008611 .001009 -0.85 0.393 -.0028387 .0011164 Apple DowJones 1.169062 .1275515 9.17 0.000 .9190661 1.419059 dummyDayBefore .0157705 .013535 1.17 0.244 -.0107576 .0422986 dummyEvent .0132543 .0135622 0.98 0.328 -.0133271 .0398357 _cons -.0016939 .0013078 -1.30 0.195 -.0042571 .0008693
Oscar
Comment