下面是来自here的线性模型模块的固定效果估计python代码。
from linearmodels import PanelOLS mod = PanelOLS(y_train, x_train, entity_effects=True) res = mod.fit(cov_type='clustered', cluster_entity=True)
在mod.fit()之后,我们如何以sklearn的身份进行predict(x_test)操作?
https://stackoverflow.com/questions/47645280
复制相似问题