I'm trying to do multivariate time series forecasting using the forecast package in R. The data set contains one dependent and independent variable. From the cross-correlation the 0 day lag of the independent variable seems to have better correlation with dependent variable.
The time series data is weekly and I have only two and half years of data. Since the data is weekly and have a very high seasonal length. Does auto.arima or Arimax capture the seasonality.
This is my approach to this problem
- Use stl decomposition to measure the seasonal strength
- If seasonal strength is higher then i intend to go with Dynamic harmonic regression on the independent variable using Fourier coeff(selected based on minimized Aicc values) and use this harmonics matrix to predict the future values of independent variable.(using auto.arima() and harmonics matix on the xreg parameter) 3.And then I intend to use this forecasted values of independent variable to predict the dependent variable using auto.arima( here on the xreg i will use forecasted values of indpendent variable from step 2)
- If there is no strong seasonality i would just use auto.arima with xreg parameter to forecast dependent variable
Please advise on this
Thank you