Skip to content

quarks

Simple Methods for Calculating and Backtesting Value at Risk and Expected Shortfall

v1.1.6 · Jan 10, 2026 · GPL-3

Description

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>.

Downloads

317

Last 30 days

12449th

1.3K

Last 90 days

5K

Last year

Trend: -28.8% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies dygraphs ggplot2 progress rugarch shiny shinyjs smoots yfR xts quarks

Version History

new 1.1.6 Mar 10, 2026
updated 1.1.6 ← 1.1.5 diff Jan 9, 2026
updated 1.1.5 ← 1.1.4 diff Oct 12, 2025
updated 1.1.4 ← 1.1.3 diff Jun 7, 2024
updated 1.1.3 ← 1.1.2 diff Aug 30, 2022
updated 1.1.2 ← 1.1.1 diff Jun 19, 2022
updated 1.1.1 ← 1.1.0 diff Jun 12, 2022
updated 1.1.0 ← 1.0.11 diff Mar 30, 2022
updated 1.0.11 ← 1.0.10 diff Jan 8, 2022
updated 1.0.10 ← 1.0.9 diff Nov 20, 2021
updated 1.0.9 ← 1.0.8 diff Sep 5, 2021
updated 1.0.8 ← 1.0.7 diff Sep 2, 2021
updated 1.0.7 ← 1.0.6 diff Sep 1, 2021
updated 1.0.6 ← 1.0.5 diff Apr 24, 2021
updated 1.0.5 ← 1.0.4 diff Feb 28, 2021
updated 1.0.4 ← 1.0.3 diff Feb 20, 2021
updated 1.0.2 ← 1.0.1 diff Feb 19, 2021
updated 1.0.3 ← 1.0.2 diff Feb 19, 2021
updated 1.0.1 ← 1.0.0 diff Feb 17, 2021
new 1.0.0 Feb 16, 2021