Hello everyone,
I am working on a project with panel data. I am trying to identify the difference in performance of green and conventional mutual funds. In my data sample around 200 green and 400 conventional funds are included. I want to calculate the Betas and Alphas of every fund, using the four factor model. However, to do 600 seperate regressions for each fund is going to be very time consuming. So I was wondering if anyone could help me with a STATA command which loops through the data and stores the different alphas and betas.
This is what i have so far, but it doesn't seem to change per FundIdentifier:
foreach i in FundIndentifier {
regress Excess Ret MKT SMB HML MOM
}
I hope anyone can help me out with this issue.
Thank you very much,
Fabian
I am working on a project with panel data. I am trying to identify the difference in performance of green and conventional mutual funds. In my data sample around 200 green and 400 conventional funds are included. I want to calculate the Betas and Alphas of every fund, using the four factor model. However, to do 600 seperate regressions for each fund is going to be very time consuming. So I was wondering if anyone could help me with a STATA command which loops through the data and stores the different alphas and betas.
This is what i have so far, but it doesn't seem to change per FundIdentifier:
foreach i in FundIndentifier {
regress Excess Ret MKT SMB HML MOM
}
I hope anyone can help me out with this issue.
Thank you very much,
Fabian
Comment