ForeComp

This repository contains the ForeComp R package for forecasting comparison and equal predictive accuracy testing. The package implements Diebold-Mariano and related procedures, including fixed-smoothing (fixed-b and fixed-m) variants, along with tools for size-power tradeoff analysis.

Contents

The package code and datasets support forecasting-method comparison and robustness analysis for equal predictive accuracy testing.

Installation

ForeComp requires R (>= 3.5.0).

Install the stable release from CRAN:

install.packages("ForeComp")

Install the development version from GitHub:

remotes::install_github("mcmcs/ForeComp")

Main functions

Plot_Tradeoff(data, f1, f2, y, ...)

For direct equal-predictive-accuracy testing with specific bandwidth rules:

ForeComp supports both fixed-smoothing defaults and baseline alternatives for Bartlett-kernel DM tests:

For both functions, Mopt has the same meaning:

where T = length(d).

For EWC fixed-smoothing:

Introductory Paper

Coming soon!