auto.arima
一部のデータで実行しようとしてxts
いますが、次のエラーが発生します。
library(quantmod)
library(forecast)
getSymbols('^GSPC',from='2000-01-01')
auto.arima(GSPC$GSPC.Close)
Error in dimnames(cd) <- list(as.character(index(x)), colnames(x)) :
'dimnames' applied to non-array
私はそれを見つけました
close <- as.ts(GSPC$GSPC.Close)
その後auto.arima
、エラーを返しません。xts
しかし、オブジェクトに関連付けられている日付情報を失いました。データをそのまま保持しxts
、関数を実行する方法はありますか?
acf(GSPC$GPSC.Close)
私は、例えば、pacf()
エラーを出さないことに気づきました。