Skip to content

cvar

Compute Expected Shortfall and Value at Risk for Continuous Distributions

v0.6 · Dec 16, 2025 · GPL (>= 2)

Description

Compute expected shortfall (ES) and Value at Risk (VaR) from a quantile function, distribution function, random number generator, probability density function, or data. ES is also known as Conditional Value at Risk (CVaR). Virtually any continuous distribution can be specified. The functions are vectorized over the arguments. The computations are done directly from the definitions, see e.g. Acerbi and Tasche (2002) <doi:10.1111/1468-0300.00091>. Some support for GARCH models is provided, as well.

Downloads

12.2K

Last 30 days

1130th

36.3K

Last 90 days

156.4K

Last year

Trend: +3.1% (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

Reverse Dependencies (1)

imports

Dependency Network

Dependencies Reverse dependencies gbutils Rdpack fGarch cvar

Version History

new 0.6 Mar 10, 2026
updated 0.6 ← 0.5 diff Dec 16, 2025
updated 0.5 ← 0.4.1 diff Nov 2, 2022
updated 0.4.1 ← 0.4-0 diff Sep 18, 2022
updated 0.4-0 ← 0.3-0 diff Mar 14, 2019
updated 0.3-0 ← 0.2-0 diff Oct 5, 2018
updated 0.2-0 ← 0.1-1 diff Aug 18, 2018
new 0.1-1 Apr 8, 2018