trendsarima <- auto.arima(trends)
(R) Automatically calculate optimized Arima(p, d , q) value
-
20-06-2023 - |
Question
I'm developing automatic forecast Software with JAVA & R. The following steps are used in R to forecast next 18 values:
trends <- scan("c:/data_for_R/trends.dat")
auto.arima(trends)
(cf.arima(pdq)
)trendsarima <- arima(trends, order=c(2,1,3))
, note that(2,1,3)
was found by the step #2)trendsforecasts <- forecast.Arima(trendsarima, h=18)
trendsforecasts
plot.forecast(trendsforecasts)
All I want to know is, how do you integrate steps #2, #3 (preferably by a single command)?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow