This is an R library by Michael B. Gordy and Alexander J. McNeil which implements the methodology described in the paper Spectral backtests of forecast distributions with application to risk management published in Journal of Banking and Finance 116, July 2020.
Paper download: JBF | Preprint on arXiv
To install:
devtools::install_github("ajmcneil/spectralBacktest")
To install with vignettes (SLOWER!):
devtools::install_github("ajmcneil/spectralBacktest", build_vignettes = TRUE)