Hello all,
For my thesis I have to run several regressions with certain factors as independent variables (F&F 5-factor model). However, I need to run around 1400 regressions on the same factors, as I have that many different dependent variables. Here follows an example of my data as it is ordered now. All numbers are returns.
NOTE: these numbers are fictional, the example is just to show what I mean. The factors have returns at all dates, while Bank A for example can have 25 returns, and Bank B 50.
Want I need is something like this:
reg Bank A Mkt-rf SMB HML RMW CMA
reg Bank B Mkt-rf SMB HML RMW CMA
However, to run these manually would take simply too much time but I just can't figure out how I can run more than one regression at the same time. Is there an alternative?
This question has my priority, but if someone also knows how to easily import the beta's and p-values of the regressions that would also be nice.
I'm using STATA version 12. I know I demand a lot, but hopefully someone can help me with this.
Best regards,
Ernest Adler
For my thesis I have to run several regressions with certain factors as independent variables (F&F 5-factor model). However, I need to run around 1400 regressions on the same factors, as I have that many different dependent variables. Here follows an example of my data as it is ordered now. All numbers are returns.
| Date | Mkt-rf | SMB | HML | RMW | CMA | Bank A | Bank B | Bank C |
| 31-01-1986 | 0,020 | 0,11 | 0,34 | 0,004 | 0,33 | . | 0,045 | . |
| 28-02-1986 | 0,012 | 0,03 | 0,04 | 0,45 | 0,01 | . | -0,09 | . |
| 31-03-1986 | -0,01 | -0,12 | 0,55 | 0,04 | 0,04 | . | -0,07 | 0,07 |
| 30-04-1986 | 0,01 | 0,035 | -0,09 | 0,03 | 0,04 | . | . | 0,09 |
| 31-05-1986 | 0,003 | 0,001 | 0,004 | 0,01 | 0,02 | 0,045 | . | 0,05 |
| 30-06-1986 | 0,002 | 0,11 | -0,56 | -0,09 | -0,01 | 0,022 | . | 0,07 |
| 31-07-1986 | 0,02 | -0,02 | -0,04 | -0,03 | -0,07 | 0,045 | . | -0,08 |
| 31-08-1986 | -0,004 | 0,01 | -0,09 | -0,03 | 0,10 | 0,03 | . | -0,09 |
| 30-09-1986 | -0,1 | 0,22 | 0,06 | -0,02 | 0,04 | 0,008 | . | -0.01 |
Want I need is something like this:
reg Bank A Mkt-rf SMB HML RMW CMA
reg Bank B Mkt-rf SMB HML RMW CMA
However, to run these manually would take simply too much time but I just can't figure out how I can run more than one regression at the same time. Is there an alternative?
This question has my priority, but if someone also knows how to easily import the beta's and p-values of the regressions that would also be nice.
I'm using STATA version 12. I know I demand a lot, but hopefully someone can help me with this.
Best regards,
Ernest Adler

Comment