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-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
- Cyclomatic complexity
- 20.0 median / 69 max
Test coverage
Line coverage
–
Expression
–
Tests / Examples
–
Functions
13 10 exported
Complexity
19.8 avg / 69 max
Call network
13 nodes / 2 edges
Call graph
Open call graph →Lowest coverage
Per-function coverage is not measured for this package yet.
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