简体   繁体   中英

How the function auto.arima() in R determines d?

R中的auto.arima()函数用于确定平稳性(即确定“ d”的值)的测试是什么?可以在python中实现该逻辑吗?

This link says it is determined using repeated KPSS tests. I see no reason why it couldn't be implemented in Python, it would just need to be written. Otherwise, you could use rpy2 and just call auto.arima from python.

from rpy2 import *
import rpy2.robjects as RO

RO.r('library(forecast)')

# use example WWWusage data
RO.r('fit <- auto.arima(WWWusage)')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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