Forecasting Models for Tidy Time Series

Provides a collection of commonly used univariate and multivariate time series forecasting models including automatically selected exponential smoothing (ETS) and autoregressive integrated moving average (ARIMA) models. These models work within the 'fable' framework provided by the 'fabletools' package, which provides the tools to evaluate, visualise, and combine models in a workflow consistent with the tidyverse.


fable

R-CMD-check Coveragestatus CRANstatus Lifecycle:stable

The R package fable provides a collection of commonly used univariate and multivariate time series forecasting models including exponential smoothing via state space models and automatic ARIMA modelling. These models work within the fable framework, which provides the tools to evaluate, visualise, and combine models in a workflow consistent with the tidyverse.

Installation

You can install the stable version from CRAN:

install.packages("fable")

You can install the development version from GitHub

# install.packages("remotes")
remotes::install_github("tidyverts/fable")

Installing this software requires a compiler

Example

library(fable)
library(tsibble)
library(tsibbledata)
library(lubridate)
library(dplyr)
aus_retail %>%
  filter(
    State %in% c("New South Wales", "Victoria"),
    Industry == "Department stores"
  ) %>% 
  model(
    ets = ETS(box_cox(Turnover, 0.3)),
    arima = ARIMA(log(Turnover)),
    snaive = SNAIVE(Turnover)
  ) %>%
  forecast(h = "2 years") %>% 
  autoplot(filter(aus_retail, year(Month) > 2010), level = NULL)

Learning to forecast with fable

  • The pkgdown site describes all models provided by fable, and how they are used: https://fable.tidyverts.org/
  • The forecasting principles and practices online textbook provides an introduction to time series forecasting using fable: https://otexts.com/fpp3/ (WIP)

Getting help

  • Questions about forecasting can be asked on Cross Validated.

  • Common questions about the fable package are often found on Stack Overflow. You can use this to ask for help if the question isn’t already answered. A minimally reproducible example that describes your issue is the best way to ask for help!

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("fable")

0.5.0 by Mitchell O'Hara-Wild, 9 months ago


https://fable.tidyverts.org, https://github.com/tidyverts/fable


Report a bug at https://github.com/tidyverts/fable/issues


Browse source code at https://github.com/cran/fable


Authors: Mitchell O'Hara-Wild [aut, cre] , Rob Hyndman [aut] , Earo Wang [aut] , Gabriel Caceres [ctb] (NNETAR implementation) , Christoph Bergmeir [ctb] (ORCID: , Tim-Gunnar Hensel [ctb] , Timothy Hyndman [ctb]


Documentation:   PDF Manual  


GPL-3 license


Imports Rcpp, rlang, stats, dplyr, tsibble, tibble, tidyr, utils, distributional, cli

Depends on fabletools

Suggests covr, feasts, forecast, fracdiff, knitr, MTS, nnet, rmarkdown, spelling, testthat, tsibbledata, urca

Linking to Rcpp


Imported by fpp3, iNZightTS, netseer, oddnet, vital.

Depended on by ForecastingEnsembles, fableCount.

Suggested by echos, fable.bayesRecon, fabletools, feasts, ggdibbler, ggtime, grattanInflators, icomb, lessR, tscv.


See at CRAN