Package: ForeComp 1.0.0

ForeComp: Size-Power Tradeoff Visualization for Equal Predictive Ability of Two Forecasts

Offers tools for visualizing and analyzing size and power properties of tests for equal predictive accuracy, including Diebold-Mariano and related procedures. Provides multiple Diebold-Mariano test implementations based on fixed-smoothing approaches, including fixed-b methods such as Kiefer and Vogelsang (2005) <doi:10.1017/S0266466605050565>, and applications to tests for equal predictive accuracy as in Coroneo and Iacone (2020) <doi:10.1002/jae.2756>, alongside conventional large-sample approximations. HAR inference involves nonparametric estimation of the long-run variance, and a key tuning parameter (the truncation parameter) trades off size and power. Lazarus, Lewis, and Stock (2021) <doi:10.3982/ECTA15404> theoretically characterize the size-power frontier for the Gaussian multivariate location model. 'ForeComp' computes and visualizes the finite-sample size-power frontier of the Diebold-Mariano test based on fixed-b asymptotics together with the Bartlett kernel. To compute finite-sample size and power, it fits a best approximating ARMA process to the input data and reports how the truncation parameter performs and how robust testing outcomes are to its choice.

Authors:Nathan Schor [aut], Minchul Shin [aut, cre, cph]

ForeComp_1.0.0.tar.gz
ForeComp_1.0.0.zip(r-4.7-any)ForeComp_1.0.0.zip(r-4.6-any)ForeComp_1.0.0.zip(r-4.5-any)
ForeComp_1.0.0.tgz(r-4.6-any)ForeComp_1.0.0.tgz(r-4.5-any)
ForeComp_1.0.0.tar.gz(r-4.7-any)ForeComp_1.0.0.tar.gz(r-4.6-any)
ForeComp_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
ForeComp/json (API)

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

Bug tracker:https://github.com/mcmcs/forecomp/issues

Datasets:
  • mikedata - Simulated data 1
  • PGDP - Price Index for Gross National Product/Gross Domestic Product
  • RGDP - Real Gross National Product/Gross Domestic Product
  • TBILL - 3-Month Treasury Bill Rate
  • UNEMP - Civilian Unemployment Rate

On CRAN:

Conda:

2.70 score 2 scripts 379 downloads 11 exports 32 dependencies

Last updated from:b488a5a40d. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK113
source / vignettesOK179
linux-releaseOK152
macos-releaseOK230
macos-oldrelOK189
windows-develOK87
windows-releaseOK151
windows-oldrelOK85
wasm-releaseOK90

Exports:dm.test.btdm.test.bt.fbdm.test.cnr.tdm.test.cnr.wdm.test.ewc.fbdm.test.imdm.test.rdm.test.r.mdm.test.wpe.fbloss.diff.pPlot_Tradeoff

Dependencies:astsaclicolorspacecpp11farverforecastfracdiffgenericsggplot2gluegtableisobandlabelinglatticelifecyclelmtestmagrittrnlmennetR6RColorBrewerRcppRcppArmadillorlangS7scalestimeDateurcavctrsviridisLitewithrzoo