Package: forecastHybrid 5.1.21

David Shaub

forecastHybrid: Convenient Functions for Ensemble Time Series Forecasts

Convenient functions for ensemble forecasts in R combining approaches from the 'forecast' package. Forecasts generated from auto.arima(), ets(), thetaf(), nnetar(), stlm(), tbats(), snaive() and arfima() can be combined with equal weights, weights based on in-sample errors (introduced by Bates & Granger (1969) <doi:10.1057/jors.1969.103>), or cross-validated weights. Cross validation for time series data with user-supplied models and forecasting functions is also supported to evaluate model accuracy.

Authors:David Shaub [aut, cre], Peter Ellis [aut]

forecastHybrid_5.1.21.tar.gz
forecastHybrid_5.1.21.zip(r-4.7)forecastHybrid_5.1.21.zip(r-4.6)forecastHybrid_5.1.21.zip(r-4.5)
forecastHybrid_5.1.21.tgz(r-4.6-any)forecastHybrid_5.1.21.tgz(r-4.5-any)
forecastHybrid_5.1.21.tar.gz(r-4.7-any)forecastHybrid_5.1.21.tar.gz(r-4.6-any)
forecastHybrid_5.1.21.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
forecastHybrid/json (API)
NEWS

# Install 'forecastHybrid' in R:
install.packages('forecastHybrid', repos = c('https://ellisp.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ellisp/forecasthybrid/issues

On CRAN:

Conda:

9.72 score 81 stars 1 packages 152 scripts 2.6k downloads 3 mentions 9 exports 41 dependencies

Last updated from:471266726a. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK155
source / vignettesOK223
linux-release-x86_64OK176
macos-release-arm64OK185
macos-oldrel-arm64OK168
windows-develOK150
windows-releaseOK145
windows-oldrelOK171
wasm-releaseOK112

Exports:cvtsextractForecastshybridModelis.hybridModelthetamthiefModeltsCombinetsPartitiontsSubsetWithIndices

Dependencies:clicodetoolscolorspacecpp11doParallelfarverforeachforecastfracdiffgenericsggplot2gluegtablehtsisobanditeratorslabelinglatticelifecyclelmtestmagrittrMatrixnlmennetpurrrR6RColorBrewerRcppRcppArmadilloRcppEigenrlangS7scalesSparseMthieftimeDateurcavctrsviridisLitewithrzoo

Using the "forecastHybrid" package

Rendered fromforecastHybrid.Rmdusingknitr::rmarkdownon May 05 2026.

Last update: 2025-07-03
Started: 2016-05-20

Readme and manuals

Help Manual

Help pageTopics
Accuracy measures for cross-validated time seriesaccuracy.cvts
Accuracy measures for hybridModel objectsaccuracy.hybridModel
Validate that CV window parameters are validcheckCVArguments
Helper function to test all the model arguments (e.g. a.args, e.args, etc)checkModelArgs
Helper function to check the that the parallel arguments are validcheckParallelArguments
Cross validation for time seriescvts
Extract cross validated rolling forecastsextractForecasts
Extract Model Fitted Valuesfitted.hybridModel
Hybrid forecastforecast.hybridModel
Forecast using a Theta modelforecast.thetam
Return a forecast model function for a given model charactergetModel
Translate character to model namegetModelName
Hybrid time series modelinghybridModel
Test if the object is a hybridModel objectis.hybridModel
Plot a hybridModel objectplot.hybridModel
Plot components from Theta modelplot.thetam
Plot the fitted values of a hybridModel objectplotFitted
Plot the component models of a hybridModel objectplotModelObjects
Helper function to validate and clean the input time seriesprepareTimeseries
Print information about the hybridModel objectprint.hybridModel
Helper function to remove models that require more dataremoveModels
Extract Model Residualsresiduals.hybridModel
Print a summary of the hybridModel objectsummary.hybridModel
Theta method 'model'thetam
Forecast ensemble using THieFthiefModel
Combine multiple sequential time seriestsCombine
Generate training and test indices for time series cross validationtsPartition
Subset time series with provided indicestsSubsetWithIndices
Helper function used to unpack the fitted model objects from a listunwrapParallelModels