Anna Iannace
Anna Iannace

Reputation: 11

R: :Error in forecast (fit, h = 6) : unused argument (h = 6)

i'm tring to do a forecast on univariate time series using R.

I use forecast package. I used first auto.arima and then i saved output of the function in variable fit.

Then i used the function forecast(fit, h=6) because i would forecast the next 6 mounth.

I have this type of error: Error in forecast(fit, h = 6) : unused argument (h = 6)

Anyone know what was wrong? I read a lot of examples that use this procedure.

Thanks

Upvotes: 1

Views: 3775

Answers (1)

Ann
Ann

Reputation: 21

Recheck the library you've loaded, I faced this error because I loaded TSA and aTSA library simultaneously.

Upvotes: 2

Related Questions