【问题标题】:How the function auto.arima() in R determines d?R中的函数auto.arima()如何确定d?
【发布时间】:2015-08-15 03:02:00
【问题描述】:

R 中的 auto.arima() 函数中使用什么测试来确定平稳性,即确定“d”的值 这个逻辑可以用python实现吗?

【问题讨论】:

    标签: python r statistics statsmodels


    【解决方案1】:

    link 表示它是使用重复的 KPSS 测试确定的。我看不出为什么它不能在 Python 中实现,它只需要编写。否则,您可以使用 rpy2 并从 python 调用 auto.arima

    from rpy2 import *
    import rpy2.robjects as RO
    
    RO.r('library(forecast)')
    
    # use example WWWusage data
    RO.r('fit <- auto.arima(WWWusage)')
    

    【讨论】:

      猜你喜欢
      • 2020-10-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-23
      • 1970-01-01
      • 2015-12-27
      • 2012-02-16
      相关资源
      最近更新 更多