when I fit the ARMA model by using the function
fit<-arima(data,order = c(1,0,1),method="ML")
I got this message
possible convergence problem: optim gave code = 1
can anyone help me to solve this problem
An example: if I repeat this an number of times I receive convergence warnings
set.seed(2)
n <- 100
for(i in 1:1000) {
sim <- arima.sim(list(ar=c(0.9,-0.4),ma=c(-1.2,0.3)),n=n)
fit <- arima(sim, order = c(1,0,1), method="ML")
}