最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

augmented reality - how to specify that the error term is an AR(1) process using IV2SLS regression of Python statsmodel? - Stack

programmeradmin0浏览0评论

I am trying to replicate an eviews code in Python. I need to fit a regression with a constant, some endogeneous variables that I instrumentalize and some exogeneous variables. The dependant variable is LR_ (long rate of a country). I do that for multiple countries.

In eviews, the function looks like that:

equation {%eq_name}.TSLS(COV=HAC,M=2000,C=1e-06) LR_{%country} c SR_{%country} INF_{%country} GDP_{%country} LR_W_{%country} AR(1 to !order_ar) @ instr_list_{%country}

where instr_list_ contains a bunch of variables.

But as you see, there is the AR(1 to !order_ar) parameters in eviews that allow me to specify that the error term for a given country has an AR(1) structure.

Can I do the same using IV2SLS function of the statsmodel package in Python?

Thank you

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论