I have about 100 ARIMA models, where each models the demand of a separate household using the temperature as an exogenous value. I've used the auto.arima
from the forecast package on R and used xreg
to input the temperature.
Now I changed/simulated several series of temperature values and want to use the new temperature values to recalculate the demand using the previously constructed ARIMA model.
I think I can calculate the values manually by referring to each coefficient value of the model. However, it will be inefficient as I have more than 100 models.
Is there a more efficient way to get this done?
So far my code is
arima_model =
auto.arima(sqrt(house_data$demand),
xreg = as.matrix(house_data$temp))
# model for demand
temp_auto_arima = auto.arima(house_data$temp)
# model for the temperature
new_temperature = simulate(temp_auto_arima)
# simulate temperature to get a new series
simulate
(from the forecast package?) new xreg values? $\endgroup$