I want to run time series regressions (Fama-French three factor with my new factor). I have following tables.
Table01
Date Port_01 Port_02 --------- Port_18
01/1965 0.85 0.97 1.86
02/1965 8.96 7.2 0.98
03/1965 8.98 7.9 8.86
Table 02
Date Market SMB HML WXO
01/1965 0.85 0.97 0.86 0.87
02/1965 8.96 7.2 0.98 0.79
03/1965 8.98 7.9 8.86 0.86
I have to run 18 regressions and store their intercepts in a vector. Something like this
Port_1=inter(1)+Beta1(Market)+Beta2(SMB)+Beta3(HML)+Beta3(WXO)+e
Port_2=inter(2)+Beta1(Market)+Beta2(SMB)+Beta3(HML)+Beta3(WXO)+e
Port_18=inter(18)+Beta1(Market)+Beta2(SMB)+Beta3(HML)+Beta3(WXO)+e
I want these 18 intercepts to be stored in a vector. I can do it individually. But If there is a way to do with coding that will help me a lot of time.