If I used arima(data, c(1,0,1))
in R software and get this result:
How should I write the equation for $ARMA(1,1)$ or $ARIMA(1,0,1)$? Is the following correct?
$$ y_t=18.7083+0.8672y_{t-1}+0.4752\epsilon_{t-1}+\epsilon_t $$
Based on what Richard Hardy pointed out, the fitted $ARIMA(1,0,1)$ can be written as $$ y_t=2.4826+0.8673y_{t-1}-0.4752\epsilon_{t-1}+\epsilon_t $$ is the correct answer.
18.7083
), you have likely got it wrong. See stat.pitt.edu/stoffer/tsa2/Rissues.htm. I also think the sign of MA should be inverted. $\endgroup$