Hello,
Im developing a CustomFactor that uses a linear regression, I have been using the function regression from statsmodels
from statsmodels import regression
results = regression.linear_model.OLS(y, X).fit()
I want to include firm fixed effects, my idea was to use
from linearmodels import PanelOLS
But it seems like quantopian does not recognise that library. I also tried creating dummy variables for the assets in the CustomFactor but that is super inefficient and was taking a lot of time.
Has anyone used fixed effects in a regression in quantopian?
Thank you