What is the purpose of and how to use the xreg argument when fitting ARIMA model in R?
My question relates to how the xreg argument is working when fitting an ARIMA model (purpose of xreg described in the post above.)
library(forecast)
fity <- auto.arima(y, xreg=x)
In the code above, is the ARIMA model being fit using past values of $y$ as predictors as well as the past values of $x$? i.e. is it assumed that the past $y$ values would be used as they would be if running an ARIMA modelling without an explanatory variable $x$? Or if I use $\text{xreg} = x$ and want the $y$ series to be used as predictors, would I have to add $y$ to the xreg matrix to force that to occur?