robjhyndman / forecast

Forecasting Functions for Time Series and Linear Models
http://pkg.robjhyndman.com/forecast
1.11k stars 341 forks source link

extract components of ets() #158

Closed emriva closed 8 years ago

emriva commented 8 years ago

Is it possible to have a function able to extract ets() components (level, slope, sesaonality) like tbats.components does with tbats() function?

robjhyndman commented 8 years ago

There's no need. They are returned as the states object. e.g.,

fit <- ets(WWWusage)
plot(fit$states)
emriva commented 8 years ago

Thanks Rob,

Could you add this info in ets() documentation, with the explanation of the meaning of columns (I understood that the first 3 columns are related to level, slope and seasonality but what about the others? ).

Thanks

RGDS

Enrico

Da: Rob J Hyndman [mailto:notifications@github.com] Inviato: giovedì 24 settembre 2015 23:41 A: robjhyndman/forecast forecast@noreply.github.com Cc: emriva enrico@martico.it Oggetto: Re: [forecast] extract components of ets() (#158)

There's no need. They are returned as the states object. e.g.,

fit <- ets(WWWusage) plot(fit$states)

— Reply to this email directly or view it on GitHub https://github.com/robjhyndman/forecast/issues/158#issuecomment-143057951 . https://github.com/notifications/beacon/AL641rrOzDQnu5-Sj3b99HTK6d3ka2X-ks5o1GVOgaJpZM4GDO1w.gif