Answers:
尝试这个:
fit <- auto.arima(WWWusage)
arimaorder(fit)
arima
帮助文件:“规范的紧凑形式,可以作为向量,给出AR,MA,季节性AR和季节性MA系数的数量,以及周期和非季节性和季节性差异的数量。”
万一某些人可能更容易理解:
non_seasonal_ar_order = model_fit$arma[1]
non_seasonal_ma_order = model_fit$arma[2]
seasonal_ar_order = model_fit$arma[3]
seasonal_ma_order = model_fit$arma[4]
period_of_data = model_fit$arma[5] # 1 for is non-seasonal data
non_seasonal_diff_order = model_fit$arma[6]
seasonal_diff_order = model_fit$arma[7]