R中的函数auto.arima()如何确定d?
How the function auto.arima() in R determines d?
R 中的 auto.arima() 函数使用什么测试来确定平稳性,即确定 "d" 的值
该逻辑可以在 python 中实现吗?
这个 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 然后从 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)')
R 中的 auto.arima() 函数使用什么测试来确定平稳性,即确定 "d" 的值 该逻辑可以在 python 中实现吗?
这个 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 然后从 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)')