Learn R Programming

ForecastComb

Forecast Combination in R

The R package ForecastComb presents functions to pool individual model forecasts using geometric- and regression-based forecast combination methods. ForecastComb combines the functionality of the packages ForecastCombinations and GeomComb under a unified user interface and convenience functions.

The forecast combination methods allow for 3 different input types:

  1. Only training set

  2. Training set + future forecasts

  3. Full training + test set

Accuracy measures are provided accordingly, summary and plot functions have been created for the S3 classes. The function auto.combine() is an automated selection of the best combination method based on criterion optimisation in the training set.

Installation

Get started by installing the R software for statistical computing.

You can install the stable version on CRAN:

install.packages('ForecastComb', dependencies = TRUE)

You can also install the development version from Github

# install.packages("devtools")
devtools::install_github("ceweiss/ForecastComb")

License

This package is free and open source software, licensed under GPL (>= 2).

Copy Link

Version

Install

install.packages('ForecastComb')

Monthly Downloads

44

Version

1.3.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Christoph Weiss

Last Published

August 7th, 2018

Functions in ForecastComb (1.3.1)

comb_MED

Median Forecast Combination
comb_LAD

Least Absolute Deviation Forecast Combination
comb_EIG3

Trimmed Eigenvector Forecast Combination
comb_EIG4

Trimmed Bias-Corrected Eigenvector Forecast Combination
comb_EIG1

Standard Eigenvector Forecast Combination
comb_EIG2

Bias-Corrected Eigenvector Forecast Combination
comb_CLS

Constrained Least Squares Forecast Combination
comb_OLS

Ordinary Least Squares Forecast Combination
foreccomb_res

Result Rbject for the Forecast Combination Methods
comb_CSR

All Possible Combinations Forecast Averaging
foreccomb

Format Raw Data for Forecast Combination
comb_SA

Simple Average Forecast Combination
comb_TA

Trimmed Mean Forecast Combination
auto_combine

Automated Forecast Combination
rolling_combine

Dynamic Forecast Combination
summary.foreccomb_res

Summary of Forecast Combination
comb_BG

Bates/Granger (1969) Forecast Combination Approach
cs_dispersion

Compute Cross-Sectional Dispersion
electricity

UK Electricity Supply 2007 - 2017
comb_WA

Winsorized Mean Forecast Combination
comb_InvW

Inverse Rank Forecast Combination
plot.foreccomb_res

Plot results from forecast combination model
comb_NG

Newbold/Granger (1974) Forecast Combination
predict.foreccomb_res

Prediction function for Forecast Combinations