arima.filt(x, model, n.cond=<<see below>>, xreg=NULL, reg.coef=NULL)
In particular, the state space form implies that the filtering is more complex than might be expected. For example in an MA(1) model, the predicted value is not merely the moving average coefficient times the last residual, see Harvey (1981, page 112).
The chapter "Analyzing Time Series" of the S-PLUS Guide to Statistical and Mathematical Analysis.
# Append missing values to the end of the ship data and # use arima.filt to produce forecast values. # Note: this could be done more directly using arima.forecast. model <- list(list(order=c(0,1,1)),list(order=c(0,1,1),period=12)) fit <- arima.mle(ship,model=model) ship.fore <- ts(c(ship,rep(NA,12)),start=start(ship),frequency=frequency(ship)) forecast <- arima.filt(ship.fore,model=fit$model)$pred