Package: foresightr 0.1.1

André Leite
foresightr: Forecasts Chosen by What Would Have Worked
Time series forecasting that replays the past before trusting a model: a rolling-origin backtest, Tashman (2000) <doi:10.1016/S0169-2070(00)00065-0>, refits every candidate at each origin, the choice is made by out-of-sample error, and prediction intervals are quantiles of the errors actually observed, for each horizon and for totals of the next periods. Models include seasonal ARIMA by exact maximum likelihood with automatic orders, Hyndman and Khandakar (2008) <doi:10.18637/jss.v027.i03>; exponential smoothing in state space form, Hyndman, Koehler, Snyder and Grose (2002) <doi:10.1016/S0169-2070(01)00110-8>; the Theta method, Assimakopoulos and Nikolopoulos (2000) <doi:10.1016/S0169-2070(00)00066-2>; a trend with changepoints and events in the manner of Taylor and Letham (2018) <doi:10.1080/00031305.2017.1380080>; TBATS, De Livera, Hyndman and Snyder (2011) <doi:10.1198/jasa.2011.tm09771>; seasonal-trend decompositions by LOESS for one or several seasonal periods, Bandara, Hyndman and Bergmeir (2021) <doi:10.48550/arXiv.2107.13462>; the method of Croston (1972) <doi:10.1057/jors.1972.50> for intermittent demand; and ensembles. The computations are done by the 'Rust' crate 'foresight', bundled with the package.
Authors:
foresightr_0.1.1.tar.gz
foresightr_0.1.1.zip(r-4.7-x86_64)foresightr_0.1.1.zip(r-4.7-arm64)foresightr_0.1.1.zip(r-4.6-x86_64)foresightr_0.1.1.zip(r-4.6-arm64)foresightr_0.1.1.zip(r-4.5-x86_64)
foresightr_0.1.1.tgz(r-4.6-x86_64)foresightr_0.1.1.tgz(r-4.6-arm64)foresightr_0.1.1.tgz(r-4.5-x86_64)foresightr_0.1.1.tgz(r-4.5-arm64)
foresightr_0.1.1.tar.gz(r-4.7-arm64)foresightr_0.1.1.tar.gz(r-4.7-x86_64)foresightr_0.1.1.tar.gz(r-4.6-arm64)foresightr_0.1.1.tar.gz(r-4.6-x86_64)
foresightr_0.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
foresightr/json (API)
| # Install 'foresightr' in R: |
| install.packages('foresightr', repos = c('https://strategicprojects.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/strategicprojects/foresightr/issues
Pkgdown/docs site:https://strategicprojects.github.io
Last updated from:f4d94e4cdb. Checks:15 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 150 | ||
| linux-devel-x86_64 | OK | 162 | ||
| source / vignettes | OK | 277 | ||
| linux-release-arm64 | OK | 131 | ||
| linux-release-x86_64 | OK | 189 | ||
| macos-release-arm64 | OK | 136 | ||
| macos-release-x86_64 | OK | 471 | ||
| macos-oldrel-arm64 | OK | 157 | ||
| macos-oldrel-x86_64 | OK | 603 | ||
| windows-devel-arm64 | OK | 417 | ||
| windows-devel-x86_64 | OK | 185 | ||
| windows-release-arm64 | OK | 264 | ||
| windows-release-x86_64 | OK | 144 | ||
| windows-oldrel-x86_64 | OK | 179 | ||
| wasm-release | OK | 166 |
Exports:autocorrelationsautoplotbacktestbox_coxcandidates_defaultcandidates_thoroughclean_seriesdecompose_mstldecompose_stlfill_gapsfind_outliersfit_modelforecast_modelforesight_threadsfourier_termsguerrero_lambdainv_box_coxkpss_statisticmaemapemasemodel_airlinemodel_arimamodel_auto_arimamodel_auto_etsmodel_box_coxmodel_crostonmodel_decomposedmodel_descriptionmodel_driftmodel_ensemblemodel_etsmodel_holt_wintersmodel_logmodel_log_linearmodel_meanmodel_naivemodel_namemodel_prophetmodel_seasonal_naivemodel_tbatsmodel_thetan_differencesn_seasonal_differencespct_biasrmseseasonal_dummiesseasonal_strengththeme_foresighttotal_forecastwith_name
Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglifecyclemagrittrpillarpkgconfigR6RColorBrewerrlangS7scalestibbleutf8vctrsviridisLitewithr
Last update: 2026-09-30
Started: 2026-09-30
Last update: 2026-09-30
Started: 2026-09-30
Last update: 2026-09-30
Started: 2026-09-30
Last update: 2026-09-30
Started: 2026-09-30
Last update: 2026-09-30
Started: 2026-09-30
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Charts of a backtest or a decomposition | autoplot.foresight_backtest autoplot.foresight_decomposition plot.foresight_backtest plot.foresight_decomposition |
| Choose a model by what would have worked | backtest |
| Ready sets of candidates | candidates_default candidates_thorough |
| Decompose a series by STL or MSTL | decompose_mstl decompose_stl |
| Gaps and outliers | clean_series fill_gaps find_outliers |
| Fit a model and forecast | fit_model forecast_model predict.foresight_fit |
| Threads used by backtests and ensembles | foresight_threads |
| External variables for a regression with ARIMA errors | fourier_terms seasonal_dummies |
| Tests and transformations | autocorrelations box_cox guerrero_lambda inv_box_cox kpss_statistic n_differences n_seasonal_differences seasonal_strength |
| Accuracy of forecasts | mae mape mase pct_bias rmse |
| Seasonal ARIMA | model_airline model_arima |
| ARIMA with automatic orders | model_auto_arima |
| A model on the log or Box-Cox scale | model_box_cox model_log |
| Intermittent demand | model_croston |
| Forecast the seasonally adjusted series | model_decomposed |
| Several models combined | model_ensemble |
| Exponential smoothing | model_auto_ets model_ets |
| Holt-Winters | model_holt_winters |
| Log-linear regression | model_log_linear |
| Benchmark models | model_drift model_mean model_naive model_seasonal_naive |
| Name and description of a model | model_description model_name |
| Prophet-style trend with changepoints and events | model_prophet |
| TBATS | model_tbats |
| Theta method | model_theta |
| The theme of the package's charts | theme_foresight |
| Forecast of a total | total_forecast |
| Rename a model | with_name |