Hello everyone,
my problem, besides not knowing how to use stata, is the following:
I have a dataset which includes:
Date - end of month date from 01/2008-12/2016
FundNo - identifies a fund
monthly return of the fund
monthly market excess return
monthly smb return
monthly hml return
monthly umd return
what I want to do:
1) I want to estimate regression constants each month, using a 60 month (5years) window for each FundNo, I don't care about the other coefficients
2) I want to sum these monthly alphas (2013-2016 - 48 estimates per FundNo) together to have quarterly instead of monthly estimates
my result variable:
I would have a new variable "alpha" which shows the summed regression constant every three months (March, June, September, December) for each FundNo (which I am then able to merge with my other dataset based on quarterly data via identifier "FundNoDate")
I have searched the forum already and found a mata code, which is supposed to help with similar problems, but I honestly have no idea how to alter codes for my purpose.
I appreciate your help a lot!
my problem, besides not knowing how to use stata, is the following:
I have a dataset which includes:
Date - end of month date from 01/2008-12/2016
FundNo - identifies a fund
monthly return of the fund
monthly market excess return
monthly smb return
monthly hml return
monthly umd return
what I want to do:
1) I want to estimate regression constants each month, using a 60 month (5years) window for each FundNo, I don't care about the other coefficients
2) I want to sum these monthly alphas (2013-2016 - 48 estimates per FundNo) together to have quarterly instead of monthly estimates
my result variable:
I would have a new variable "alpha" which shows the summed regression constant every three months (March, June, September, December) for each FundNo (which I am then able to merge with my other dataset based on quarterly data via identifier "FundNoDate")
I have searched the forum already and found a mata code, which is supposed to help with similar problems, but I honestly have no idea how to alter codes for my purpose.
I appreciate your help a lot!
Comment