R-Markdown - ARMA Simulation

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

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.