Compute Expected Shortfall and Value at Risk for Continuous Distributions
Overview
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.
- fixed a test failing after a change in the arguments of
RNGkindin R-devel =svn r90299=.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-26
- ERROR10 OK, 3 ERROR2026-07-27
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 6includes a package overview page
- Examples that run
- 80%4 run in a plain check · 1 hold no code
- Exported functions with examples
- 75%
- Documented parameters
- 92%
- Return-value docs
- 75%
- Help pages citing references
- 17% with a bibliography file
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 6
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Forks over time
Issues over time
Commits over time
6 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/geobosh/cvar on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2022-11-09 · The repository has a site deploy workflow
pkgdown site last built 2022-11-09, before release 0.6.1 (2026-08-21)
Dependencies
Installing cvar adds 3 packages (1 with compiled code, 1.6 MB of source tarballs). Heaviest: rbibutils 1.1 MB, Rdpack 370 KB, gbutils 164 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.6.1Latest
- RR 4.6.0 released · 2026-04-24
- 0.62025-12-17 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.52022-11-03 · diff ↗
- 0.4.12022-09-19 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 0.4-02019-03-15 · diff ↗
- 0.3-0
- 0.2-02018-08-19 · diff ↗
- RR 3.5.0 released · 2018-04-23
Show 2 earlier eventsHide 2 earlier events
- 0.1-12018-04-09
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2018-04-09
- Total releases
- 8 / 8 yrs
- License
- GPL (>= 2) OSI
- Download size
- 129 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("cvar")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.