Learn R Programming

⚠️There's a newer version (9.0.0) of this package.Take me there.

forecast (version 5.1)

Forecasting functions for time series and linear models

Description

Methods and tools for displaying and analysing univariate time series forecasts including exponential smoothing via state space models and automatic ARIMA modelling.

Copy Link

Version

Install

install.packages('forecast')

Monthly Downloads

428,345

Version

5.1

License

GPL (>= 2)

Maintainer

Rob Hyndman

Last Published

February 8th, 2014

Functions in forecast (5.1)

Arima

Fit ARIMA model to univariate time series
plot.forecast

Forecast plot
ets

Exponential smoothing state space model
woolyrnq

Quarterly production of woollen yarn in Australia
bats

BATS model (Exponential smoothing state space model with Box-Cox transformation, ARMA errors, Trend and Seasonal components)
Acf

(Partial) Autocorrelation Function Estimation
seasonplot

Seasonal plot
monthdays

Number of days in each season
BoxCox.lambda

Automatic selection of Box Cox transformation parameter
easter

Easter holidays in each season
seasadj

Seasonal adjustment
forecast.lm

Forecast a linear model with possible time series components
tbats.components

Extract components of a TBATS model
logLik.ets

Log-Likelihood of an ets object
fitted.Arima

One-step in-sample forecasts using ARIMA models
tsclean

Identify and replace outliers and missing values in a time series
nnetar

Neural Network Time Series Forecasts
plot.bats

Plot components from BATS model
sindexf

Forecast seasonal index
ndiffs

Number of differences required for a stationary series
gold

Daily morning gold prices
na.interp

Interpolate missing values in a time series
tbats

TBATS model (Exponential smoothing state space model with Box-Cox transformation, ARMA errors, Trend and Seasonal components)
getResponse

Get response variable from time series model.
tsoutliers

Identify and replace outliers in a time series
forecast.ets

Forecasting using ETS models
ses

Exponential smoothing forecasts
splinef

Cubic Spline Forecast
rwf

Random Walk Forecast
wineind

Australian total wine sales
seasonaldummy

Seasonal dummy variables
ma

Moving-average smoothing
subset.ts

Subsetting a time series
thetaf

Theta method forecast
bizdays

Number of trading days in each season
forecast

Forecasting time series
arima.errors

ARIMA errors
forecast.stl

Forecasting using stl objects
croston

Forecasts for intermittent demand using Croston's method
meanf

Mean Forecast
forecast.bats

Forecasting using BATS and TBATS models
gas

Australian monthly gas production
BoxCox

Box Cox Transformation
CV

Cross-validation statistic
auto.arima

Fit best ARIMA model to univariate time series
tslm

Fit a linear model with time series components
dm.test

Diebold-Mariano test for predictive accuracy
forecast.HoltWinters

Forecasting using Holt-Winters objects
forecast.StructTS

Forecasting using Structural Time Series models
plot.ets

Plot components from ETS model
naive

Naive forecasts
arfima

Fit a fractionally differenced ARFIMA model
taylor

Half-hourly electricity demand
forecast.Arima

Forecasting using ARIMA or ARFIMA models
dshw

Double-Seasonal Holt-Winters Forecasting
msts

Multi-Seasonal Time Series
simulate.ets

Simulation from a time series model
tsdisplay

Time series display
accuracy

Accuracy measures for forecast model