I cannot produce an R-Markdown document because of the warning my code produces every time I run it.
Is there a way to prevent the warning from appearing when I run my simulation code where there are no ar coefficients and only ma coefficients?
par(mfrow=c(3,1))
arcoefs = c(0)
macoefs =c(0,0.9)
sim <- arima.sim(n=200, list(ar=arcoefs,
ma = macoefs), sd = 1)
## Warning in min(Mod(polyroot(c(1, -model$ar)))): no non-missing arguments to min;
## returning Inf
ts.plot(sim)
periodogram(sim)
ARMAspec(model=list(ar = arcoefs, ma = macoefs))
## Warning in min(Mod(polyroot(c(1, -model$ar)))): no non-missing arguments to min;
## returning Inf