Hello everyone,
I want to run quarterly weighted FamaMacBeth regressions. The weights correspond to the number of observations used in each quarterly cross-sectional regression.
My time identifier is "quarter_year" and my firm identifier is "permno". The dependant variable is "SUE" and the independant variables are "
The following is how far I came with -xtfmb- (from SSC), but it allows only aweights, which doesn't work in my case I think.
tsset permno quarter_year
xtfmb SUE D_LOW D_HIGH SIZE BM RET_50 RET_5 IO IVOL LAG_SUE TURN_50
The following got me the mean of the estimators of each cross sectional regression with -statsby- and -collapse-,but I don't know how to weight them.
statsby _b e(r2), by(quarter_year): regress SUE D_LOW D_HIGH SIZE BM RET_50 RET_5 IO IVOL LAG_SUE TURN_50
collapse (mean) _b_cons _b_D_LOW _b_D_HIGH _b_SIZE _b_BM _b_RET_50 _b_RET_5 _b_IO _b_IVOL _b_LAG_SUE _b_TURN_50 _eq2_stat_1
Does anyone know how to this with the number of observations as weights?
I want to run quarterly weighted FamaMacBeth regressions. The weights correspond to the number of observations used in each quarterly cross-sectional regression.
My time identifier is "quarter_year" and my firm identifier is "permno". The dependant variable is "SUE" and the independant variables are "
D_LOW", "D_HIGH", "SIZE", "BM", "RET_50", "RET_5", "IO", "IVOL", "LAG_SUE", "TURN_50".
The following is how far I came with -xtfmb- (from SSC), but it allows only aweights, which doesn't work in my case I think.
tsset permno quarter_year
xtfmb SUE D_LOW D_HIGH SIZE BM RET_50 RET_5 IO IVOL LAG_SUE TURN_50
The following got me the mean of the estimators of each cross sectional regression with -statsby- and -collapse-,but I don't know how to weight them.
statsby _b e(r2), by(quarter_year): regress SUE D_LOW D_HIGH SIZE BM RET_50 RET_5 IO IVOL LAG_SUE TURN_50
collapse (mean) _b_cons _b_D_LOW _b_D_HIGH _b_SIZE _b_BM _b_RET_50 _b_RET_5 _b_IO _b_IVOL _b_LAG_SUE _b_TURN_50 _eq2_stat_1
Does anyone know how to this with the number of observations as weights?
Comment