Skip to content
Tidy time series forecasting
R C++ C
Branch: master
Clone or download
Latest commit 2db77b9 Oct 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R Added interpolate.model_mean Oct 10, 2019
hex Added hex sticker files May 24, 2019
inst Added more examples to model method docs Aug 9, 2019
man Added interpolate.model_mean Oct 10, 2019
src Dropped redistribution of R_cpolyroot Aug 27, 2019
tests Conditionally require feasts package in tests and examples Aug 7, 2019
vignettes
.Rbuildignore Added introduction to fable vignette Jul 26, 2019
.gitignore Added introduction to fable vignette Jul 26, 2019
.travis.yml Remove travis R 3.4.4 test for feasts dependency Jul 13, 2019
DESCRIPTION Increment version number Sep 24, 2019
LICENSE.md * added cran badge Feb 25, 2019
NAMESPACE Added interpolate.model_mean Oct 10, 2019
NEWS.md Added interpolate.model_mean Oct 10, 2019
README.Rmd
README.md Updated installation instructions for CRAN release Sep 24, 2019
_pkgdown.yml Added components.ETS to pkgdown reference Aug 26, 2019
appveyor.yml
codecov.yml Added codecov Aug 21, 2018
cran-comments.md Remove conditional usage of feasts package Sep 16, 2019
fable.Rproj Renamed package to fable 🎉 Jun 1, 2018
tic.R Added tidyverts dev to tic tests Sep 11, 2019

README.md

fable

Travis build status AppVeyor Build Status Coverage status CRAN_Status_Badge lifecycle

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

The 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: http://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!

You can’t perform that action at this time.