# Fitted values of an Arimax model changing the X var [closed]

I estimate an arimax model $$y_t=a*y_{t-1} + b*x_t + e_t$$

Where $$x_t$$ is a dummy with ones from a specific date and on. $$(0,0,0,...,0,1,1,1,1,1)$$

I estimate it with Arima instruction forecast package in R. I would like to obtain fitted values of the ARIMAX model but considering what have had happended with no change in the dummy. $$(0,0,0,...,0,0,0,0,0,0)$$ Which R-code could I use to obtain these values (a sort of counterfactual behaviour)?

Thanks

C

## closed as off-topic by Michael Chernick, mkt, mdewey, forecaster, SycoraxSep 10 at 18:07

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question appears to be off-topic because EITHER it is not about statistics, machine learning, data analysis, data mining, or data visualization, OR it focuses on programming, debugging, or performing routine operations within a statistical computing platform. If the latter, you could try the support links we maintain." – Michael Chernick, mkt, mdewey, forecaster
If this question can be reworded to fit the rules in the help center, please edit the question.