如何从Python(System GMM)中的PydynPD软件包中提取系数?
我试图在系统GMM估计的模型上运行蒙特卡洛模拟。因此,我需要从Python的Pydynpd软件包中提取模型的系数.com/dazhwu/pydynpd )。我正在搜索一个命令/函数,该命令/函数就像fit()的statsmodels一样返回。参数,数组中的系数。
I am trying to run a monte carlo simulation on a model estimated by the system gmm. Therefore, I need to extract the coefficients of my model from the prettytable from the pydynpd package in python (https://github.com/dazhwu/pydynpd). I am searching for a command/function that returns just like statsmodels with fit().params, the coefficients in an array.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对不起。我只是看到了你的问题。您总是可以在
https://github.com/dazhwu/pydynpd/sissues
例如
输出回归表将是
如果要编程提取一个值,例如,第一个z值(6.6121470),则可以添加以下内容:
基本上,上面返回的对象myDPD包含模型。默认情况下,它仅包含一个模型[0]。模型具有一个是PANDAS DataFrame的回归表:
因此您可以从此数据框架中提取任何值。
Sorry. I just saw your question. You can always post your questions at
https://github.com/dazhwu/pydynpd/issues
For example, if you run:
The output regression table will be
If you want to programably extract a value, for example, the first z value (6.6121470) then you can add the following:
Basically, the object mydpd returned above contains models. By default, it only contains one model which is models[0]. A model has a regression table which is a pandas dataframe:
So you can extract any value from this dataframe.