I am new in R and Timeseries analysis and forecasting. I have 2 questions.
I am detecting three change points in my dataset.
ts <- ts(y) bp <- breakpoints(ts~1) #three breakpoints are detected
Can I somehow conclude that any of the breakpoints is not significant and will not change my forecasting? If no, how can I adjust two out of three breakpoints into my forecast dataset?
My timeseries has trend and seasonality. I implement an ARIMA model with
auto.arima()
function. Do I have to detrend and decompose my series? Isauto.arima()
valid if I don't? The code I use:fit <- auto.arima(ts2, stationary=FALSE, seasonal = TRUE, trace=TRUE, ) pred <- forecast(fit, h=59) plot(pred, lty = c(1,3), xlab='week', ylab='index', main='Timeseries - Prediction')
Lastly, can I check for a max h for forecast?
EDIT Timeseries plot with breakpoints