Reputation: 939
I have a little stupid question about forecast
package. I want to get information about model formula. For example:
library(forecast)
fit <- auto.arima(WWWusage)
print(fit)
This produces:
Series: WWWusage
ARIMA(1,1,1)
Coefficients:
ar1 ma1
0.6504 0.5256
s.e. 0.0842 0.0896
sigma^2 estimated as 9.995: log likelihood=-254.15
AIC=514.3 AICc=514.55 BIC=522.08
So in this case I can see that the model is ARIMA(1,1,1)
. But I can't find how to extract this directly.
Upvotes: 1
Views: 195
Reputation: 31800
library(forecast)
fit <- auto.arima(WWWusage)
as.character(fit)
Upvotes: 2