Error in rep(1, n.ahead) : invalid ‘times’ argument in R
You need to specify the arguments to forecast() a little differently; since you didn’t post example data, I’ll demonstrate with the gold dataset in the forecast package: You may want to spend some time with the forecast package documentation to see what the arguments for the various functions are named and in what order they appear. Regarding your forecast.Arima not found error, you can see this answer to … Read more