Retour au classement

robjhyndman/forecast

Rpkg.robjhyndman.com/forecast

Forecasting Functions for Time Series and Linear Models

forecastingforecastcranr
Croissance des étoiles
Étoiles
1.2k
Forks
338
Croissance hebdomadaire
Issues
5
5001k
nov. 2012mai 2017déc. 2021juil. 2026
README

forecast

R-CMD-check CRAN_Status_Badge Downloads Licence

The R package forecast provides methods and tools for displaying and analysing univariate time series forecasts including exponential smoothing via state space models and automatic ARIMA modelling.

A complementary forecasting package is the fable package, which implements many of the same models but in a tidyverse framework.

Installation

You can install the stable version from CRAN.

install.packages("forecast", dependencies = TRUE)

You can install the development version from Github

# install.packages("pak")
pak::pak("robjhyndman/forecast")

Usage

library(forecast)
library(ggplot2)

# ETS forecasts
USAccDeaths |>
  ets() |>
  forecast() |>
  autoplot()

# Automatic ARIMA forecasts
WWWusage |>
  auto.arima() |>
  forecast(h = 20) |>
  autoplot()

# ARFIMA forecasts
library(fracdiff)
x <- fracdiff.sim(100, ma = -0.4, d = 0.3)$series
arfima(x) |>
  forecast(h = 30) |>
  autoplot()

# Forecasting with STL
USAccDeaths |>
  stlm(modelfunction = ar) |>
  forecast(h = 36) |>
  autoplot()

AirPassengers |>
  stlf(lambda = 0) |>
  autoplot()

USAccDeaths |>
  stl(s.window = "periodic") |>
  forecast() |>
  autoplot()

# TBATS forecasts
USAccDeaths |>
  tbats() |>
  forecast() |>
  autoplot()

taylor |>
  tbats() |>
  forecast() |>
  autoplot()

For more information

License

This package is free and open source software, licensed under GPL-3.

Dépôts similaires
facebook/prophet

Tool for producing high quality forecasts for time series data that has multiple seasonality with linear or non-linear growth.

PythonPyPIMIT Licenseforecastingr
facebook.github.io/prophet
20.3k4.6k
NVIDIA/DeepLearningExamples

State-of-the-Art Deep Learning scripts organized by models - easy to train and deploy with reproducible accuracy and performance on enterprise-grade infrastructure.

Jupyter Notebookcomputer-visiondeep-learning
14.8k3.4k
statsmodels/statsmodels

Statsmodels: statistical modeling and econometrics in Python

PythonPyPIBSD 3-Clause "New" or "Revised" Licensepythonstatistics
statsmodels.org/devel/
11.5k3.5k
autogluon/autogluon

Fast and Accurate ML in 3 Lines of Code

PythonPyPIApache License 2.0automlmachine-learning
auto.gluon.ai
10.5k1.2k
sktime/sktime

A unified framework for machine learning with time series

PythonPyPIBSD 3-Clause "New" or "Revised" Licensetime-seriesmachine-learning
sktime.net
9.9k2.2k
unit8co/darts

A python library for user-friendly forecasting and anomaly detection on time series.

PythonPyPIApache License 2.0pythontime-series
unit8co.github.io/darts/
9.5k1k
NirantK/awesome-project-ideas

Curated list of Machine Learning, NLP, Vision, Recommender Systems Project Ideas

MIT Licensedeep-learningforecasting
nirantk.com/awesome-project-ideas/
9.2k1.3k
postgresml/postgresml

Postgres with GPUs for ML/AI apps.

Rustcrates.ioMIT Licensemlmachine-learning
postgresml.org
6.8k366
zhouhaoyi/Informer2020

The GitHub repository for the paper "Informer" accepted by AAAI 2021.

PythonPyPIApache License 2.0deep-learningself-attention
6.5k1.3k
timeseriesAI/tsai

Time series Timeseries Deep Learning Machine Learning Python Pytorch fastai | State-of-the-art Deep Learning library for Time Series and Sequences in Pytorch / fastai

Jupyter NotebookApache License 2.0time-series-classificationdeep-learning
timeseriesai.github.io/tsai/
6.1k720
amazon-science/chronos-forecasting

Chronos: Pretrained Models for Time Series Forecasting

PythonPyPIApache License 2.0forecastinglarge-language-models
arxiv.org/abs/2510.15821
5.6k676
awslabs/gluonts

Probabilistic time series modeling in Python

PythonPyPIApache License 2.0time-seriesdeep-learning
ts.gluon.ai
5.2k823