Simple Methods for Calculating and Backtesting Value at Risk and Expected Shortfall
Overview
Enables the user to calculate Value at Risk (VaR) and Expected Shortfall (ES) by means of various types of historical simulation. Currently plain-, age-, volatility-weighted- and filtered historical simulation are implemented in this package. Volatility weighting can be carried out via an exponentially weighted moving average model (EWMA) or other GARCH-type models. The performance can be assessed via Traffic Light Test, Coverage Tests and Loss Functions. The methods of the package are described in Gurrola-Perez, P. and Murphy, D. (2015) https://EconPapers.repec.org/RePEc:boe:boeewp:0525 as well as McNeil, J., Frey, R., and Embrechts, P. (2015) https://ideas.repec.org/b/pup/pbooks/10496.html.
- minor improvements of the ShinyApp (runFTS) for downloading data from Yahoo Finance
- added the option to select data frequency
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 18
- Examples that run
- 100%9 run in a plain check
- Exported functions with examples
- 90%
- Documented parameters
- 88%
- Return-value docs
- 100%
- Help pages citing references
- 11%
Downloads
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.1.6Latest
- 1.1.52025-10-13 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 1.1.42024-06-08 · diff ↗
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 1.1.3
- 1.1.22022-06-20 · diff ↗
- 1.1.12022-06-13 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.1.0
- 1.0.112022-01-09 · diff ↗
- 1.0.102021-11-21 · diff ↗
- 1.0.92021-09-06 · diff ↗
- 1.0.82021-09-03 · diff ↗
Show 10 earlier eventsHide 10 earlier events
Package metadata
- First published
- 2021-02-17
- Total releases
- 19 / 5 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 2.10
- Bundled data
- 1.3 MB / 6 files
- Download size
- 3.0 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("quarks")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.