Closed fccoelho closed 7 years ago
Sure. There are two ways to do this:
And include the other series as your predictors via patsy notation (see examples). The tricky bit is how to do prediction with these exogenous variables - you'll need to forecast the exogenous variables (e.g. estimate univariate models on these and get predictions via the predict() method). Once you have the predictions for the exogenous variables, put them into a dataframe. Then use this dataframe in the predict() method of your main model as the oos_data() argument.
Appreciate the answer above is a bit verbose. TLDR answer is: make forecasts of the exogenous variables, make a dataframe out of them, and include the dataframe as the data_oos argument in predict().
Thanks! it really helped.
No worries at all.
Suppose I want to forecast a series, using itself plus multiple other series as exogenous variables. Is it possible? can you provide a simple example?