I'm trying to create a forecast using autoarima with some data, but i always get a straight-line, can someone please help me? :) This is what i've got so far
install.packages("forecast")
install.packages("scales")
library(forecast)
datos <-read.csv("C:/Users/sarit/Documents/SÉPTIMO CUATRI/iieg/dator.csv",header=T)
monto=datos$monto.XVI
montots<-ts(monto)
montots<-ts(monto,frequency = 12,start = c(2007,1), end = c(2018,8))
montots
plot(montots)
auto.arima(montots)
fit=arima(montots,order=c(0,1,0))
a=forecast(fit,h=5)
plot(forecast(fit,h=5))
So basically, with the autoarima function i get (0,1,0), and when i plot the forecast i get a straight line like this:
thank you