Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Forecasting Functions for Time Series and Linear Models

NotificationsYou must be signed in to change notification settings

robjhyndman/forecast

Repository files navigation

R-CMD-checkCRAN_Status_BadgeDownloadsLicence

The R packageforecast 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 thefable package, which implements many of the same models but in a tidyverse framework.

Installation

You can install thestable version fromCRAN.

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

You can install thedevelopment version fromGithub

# install.packages("remotes")remotes::install_github("robjhyndman/forecast")

Usage

library(forecast)library(ggplot2)# ETS forecastsUSAccDeaths |>  ets() |>  forecast() |>  autoplot()# Automatic ARIMA forecastsWWWusage |>  auto.arima() |>  forecast(h=20) |>  autoplot()# ARFIMA forecastslibrary(fracdiff)x <- fracdiff.sim(100, ma=-.4, d=.3)$seriesarfima(x) |>  forecast(h=30) |>  autoplot()# Forecasting with STLUSAccDeaths |>  stlm(modelfunction=ar) |>  forecast(h=36) |>  autoplot()AirPassengers |>  stlf(lambda=0) |>  autoplot()USAccDeaths |>  stl(s.window='periodic') |>  forecast() |>  autoplot()# TBATS forecastsUSAccDeaths |>  tbats() |>  forecast() |>  autoplot()taylor |>  tbats() |>  forecast() |>  autoplot()

For more information

License

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

About

Forecasting Functions for Time Series and Linear Models

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors44

Languages


[8]ページ先頭

©2009-2025 Movatter.jp