quarks
1.1.6Simple 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.
Install
Health
- OK2026-08-0513 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-08-0112 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0812 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 88%
- Return-value docs
- 100%
- References docs
- 11%
Downloads
Dependencies
Nothing depends on this yet.
Code & Tests
Datasets
People & History
19 releases. Pick two to compare their code metrics. R releases are shown for context.
- 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.32022-08-31 · diff ↗
- 1.1.22022-06-20 · diff ↗
- 1.1.12022-06-13 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.1.02022-03-31 · diff ↗
- 1.0.112022-01-09 · diff ↗
- 1.0.102021-11-21 · diff ↗
- 1.0.92021-09-06 · diff ↗
- 1.0.82021-09-03 · diff ↗
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
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("quarks")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-08-15, which the citation names so these numbers can be found later. More on citing and the projects behind them.