Crandore Hub

cvar

Compute Expected Shortfall and Value at Risk for Continuous Distributions

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.

Versions across snapshots

VersionRepositoryFileSize
0.6 2026-04-09 windows/windows R-4.5 cvar_0.6.zip 138.0 KiB

Dependencies (latest)

Imports

Suggests