Closed wbzhang233 closed 1 year ago
This is happening because one of the following is occurring:
(a) You have an X variable that only changes accros time but not in the cross section. FMB effectively uses time dummies and so cannot handle this case. (b) You have an X variable that is a linear combination of other X variables.
Dear Bashtage: I'm doing ablation study on Fama-French Five Factor Model, I use FamaMacbeth to test the risk premium of five factors, but when I use a panel data with number of entities is 25, number of time period is 152, and number of factors is 5. I failed, the hints like below.
--- Below is Chinese Version --- 您好!我用文中的函数进行五因子实证实验,也就是把根据市值-ROE构建的25个投资组合作为因变量,然后取了152个月的截面期数据,因子数为[MKT, SMB, HML, RMW, CMA]。但我用linearmodels里面的FamaMacbeth函数进行回归时,总是会提示