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.
| Version: | 1.0.0 |
| Depends: | R (≥ 3.5.0), stats |
| Imports: | forecast, astsa, ggplot2, rlang |
| Suggests: | testthat (≥ 3.0.0) |
| Published: | 2026-02-20 |
| DOI: | 10.32614/CRAN.package.ForeComp |
| Author: | Nathan Schor [aut], Minchul Shin [aut, cre, cph] |
| Maintainer: | Minchul Shin <visiblehand at gmail.com> |
| BugReports: | https://github.com/mcmcs/ForeComp/issues |
| License: | GPL (≥ 3) |
| URL: | https://github.com/mcmcs/ForeComp |
| NeedsCompilation: | no |
| Materials: | README, NEWS |
| In views: | TimeSeries |
| CRAN checks: | ForeComp results |
| Reference manual: | ForeComp.html , ForeComp.pdf |
| Package source: | ForeComp_1.0.0.tar.gz |
| Windows binaries: | r-devel: ForeComp_1.0.0.zip, r-release: ForeComp_1.0.0.zip, r-oldrel: ForeComp_1.0.0.zip |
| macOS binaries: | r-release (arm64): ForeComp_1.0.0.tgz, r-oldrel (arm64): ForeComp_1.0.0.tgz, r-release (x86_64): ForeComp_1.0.0.tgz, r-oldrel (x86_64): ForeComp_1.0.0.tgz |
| Old sources: | ForeComp archive |
Please use the canonical form https://CRAN.R-project.org/package=ForeComp to link to this page.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.