I am trying to forecast daily sales and have found that for the seasonally adjusted component a non-seasonal ARIMA (3,1,6) and a seasonal naive for seasonal component gives me the best result.

How can I use `stlf`

or `stlm`

functions to specify my order (3,1,6) in ARIMA method?

Currently, I am forecasting both components separately and merging them to obtain my forecasts.

**Contents**hide

#### Best Answer

Here is an example.

`fit <- stlm(USAccDeaths, modelfunction=Arima, order=c(3,1,6)) fc <- forecast(fit) plot(fc) `

### Similar Posts:

- Solved – AIC values for auto.arima
- Solved – How to get in-sample forecast for ARIMA model in R?
- Solved – Changing the plotted confidence intervals plotted for an ARIMA model in R
- Solved – Changing the plotted confidence intervals plotted for an ARIMA model in R
- Solved – Why doesn’t the ARIMA forecast include the trend?