It's easy for me to fit ARIMA models in software such as R but I cannot find a "simple" example anywhere on the web for how to transform an ARIMA model to state space form (SSF)? I think it's the lagged error term that's causing me trouble here because otherwise I can easily see how to put it in SSF. If someone can step me through this it would be appreciated!!
$$(1-\phi_1B)(1-B)X_t = (1-\theta_1B)\epsilon_t$$
or
$$X_t=(\phi_1+1)X_{t-1}+\epsilon_t-\theta_1\epsilon_{t-1} $$