问题描述
我已经使用非线性 IV GMM 估计了一个模型,并试图输出 R 平方和 RMSE。在输出中我只能看到 Hansen J 测试:
NonlinearIVGMM Results
==============================================================================
Dep. Variable: Y Hansen J: AAAA
Model: NonlinearIVGMM Prob (Hansen J): AAAA
Method: GMM
Date: AAA
Time: AAA
No. Observations: AAA
==============================================================================
coef std err z P>|z| [0.025 0.975]
------------------------------------------------------------------------------
x1 results here
x2 results here
x3 results here
==============================================================================
model = gmm.NonlinearIVGMM(endogenous,exogenous,ivs,momentcondition,k_moms=4)
fittedmodel = model.fit([0.1,0.1,0.1],maxiter='cue',weights_method='hac',optim_args={'disp':0})
print(fittedmodel.summary())
然后,我运行以下命令:
fittedmodel.rsquared
并获得:
AttributeError: 'IVGMMResults' object has no attribute 'rsquared'
尽管在 statsmodel 库(以及非线性 IV GMM 代码中)有 r 平方。
感谢您的帮助。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)