1

I am new to data science. While doing forecasting in ARIMA, the AIC of arima model is giving me infinity value. because of that the oracle database is giving error while storing the aic into database.

Zeeshan
  • 1,208
  • 1
  • 14
  • 26
learner
  • 43
  • 1
  • 6

1 Answers1

1

The arima model give you infinity value if your data is not successive equally spaced. ex. Jan, feb,march and june. (here june is not equally spaced.) you can manually make aic to zero.

   fitscore<-fit$aic

  if ((fitscore=="-Inf")==TRUE||(fitscore=="Inf")==TRUE)
    {
      fitscore<-0
    }
Zeeshan
  • 1,208
  • 1
  • 14
  • 26