This happens when you have no values, as in the following example.
library(forecast) x <- WWWusage x[10] <- NA fit <- Arima(x,c(3,1,0), seasonal=list(order=c(0,1,1),period=12)) simulate(fit)
By default, arguments model future values conditional on data and fail if some values are missing. If you need an unrelated pattern, you can add future=FALSE .
simulate(fit, future=FALSE) # Does not fail
For modeling with an arbitrary model, you can try to build a minimal Arima object, with the necessary data.
m <- list( arma=c(3,0,0,1,12,1,1), model=list( phi=c(1.17, -0.71, 0.39), theta=c(0,0,0,0,0,0,0,0,0,0,0,-.79) ), sigma2=11, x=NA ) simulate.Arima(m, nsim=30, future=FALSE)