Skip to content

Instantly share code, notes, and snippets.

@arjay55
Last active August 20, 2019 04:21
Show Gist options
  • Save arjay55/ca968e347b17348bc57f57274821f5c4 to your computer and use it in GitHub Desktop.
Save arjay55/ca968e347b17348bc57f57274821f5c4 to your computer and use it in GitHub Desktop.
R_auto_arima
model = auto.arima(ts(data$inflation,frequency = 1),seasonal = FALSE,stepwise=FALSE,
approximation = TRUE, max.p = myp, max.q = myq, max.P = myp,
max.Q = myq, max.d = 4, max.D=4,
max.order=120, num.cores = 3,parallel = TRUE)
flength=15
fcast_no_holdout <- forecast(model,flength)
model = auto.arima(ts(rev(data$inflation),frequency = 1),seasonal = FALSE,stepwise=FALSE,
approximation = TRUE, max.p = myp, max.q = myq, max.P = myp, max.Q = myq, max.d = 4,
max.D=4, max.order=120, num.cores = 3,parallel = TRUE)
flength=6
fcast_no_holdout <- forecast(model,flength)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment