MSTL
model, which decomposes the series into trend and seasonal components.
This guide shows you how to use the
mstl_decomposition
function to extract those features for training and then use their
future values for inference.
Suppose that you want to use an ARIMA model to forecast your series but
you want to incorporate the trend and seasonal components from the MSTL
model as external regressors. You can define the MSTL model to use and
then provide it to the mstl_decomposition function.
We can now train our ARIMA models and compute our forecasts.
We can now evaluate the performance.

