简体   繁体   English

Statsmodels中的ARMA订单规范

[英]ARMA Order Specification in Statsmodels

My problem is fairly straightforward: I want to define specific order lags on the ARMA modeling process using statsmodels. 我的问题很简单:我想使用statsmodels在ARMA建模过程中定义特定的顺序滞后。

Assuming I have a time series TS, I would like to estimate the following model as an example: 假设我有一个时间序列TS,我想以以下模型为例:

TS(t)= c + TS(t-2) + TS(t-5) + e(t)

This AR model only used the second and fifth lags. 此AR模型仅使用第二和第五个滞后。 But haven't figured out how to tell it to look t ONLY those lags instead of all lags up to the fifth, which is what the following code does: 但是还没有弄清楚如何告诉它仅查看那些滞后,而不是直到第五次的所有滞后,这是以下代码的作用:

ar1 = sm.tsa.ARMA(TS, (5,0)).fit(method="mle")

I'm sure someone has already done this. 我确定有人已经这样做了。

It looks like you found the github issue for this already. 看来您已经找到了github问题 As you found, you can't do this yet, but we will hopefully have this functionality in 0.7. 如您所见,您尚不能执行此操作,但希望我们在0.7中具有此功能。 If you're feeling adventurous, you can install the branch mentioned in the issue. 如果您喜欢冒险,可以安装问题中提到的分支。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM