Skip to content

Commit f7653f8

Browse files
committed
finalize v0.5
1 parent be5a7cc commit f7653f8

12 files changed

+364
-259
lines changed

DESCRIPTION

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: cvar
22
Type: Package
33
Title: Compute Expected Shortfall and Value at Risk for Continuous Distributions
4-
Version: 0.4.1.9000
4+
Version: 0.5
55
Authors@R: person(given = c("Georgi", "N."), family = "Boshnakov",
66
role = c("aut", "cre"),
77
email = "[email protected]")
@@ -15,9 +15,9 @@ Description: Compute expected shortfall (ES) and Value at Risk (VaR) from a
1515
as well.
1616
URL: https://geobosh.github.io/cvar/ (doc), https://github.com/GeoBosh/cvar (devel)
1717
BugReports: https://github.com/GeoBosh/cvar/issues
18-
Imports: gbutils, Rdpack (>= 0.8), fGarch
18+
Imports: gbutils, Rdpack (>= 0.8)
1919
RdMacros: Rdpack
2020
License: GPL (>=2)
2121
Collate: VaR.R cvar-package.R garch.R
2222
RoxygenNote: 7.2.0
23-
Suggests: testthat, PerformanceAnalytics
23+
Suggests: testthat, fGarch, PerformanceAnalytics

NAMESPACE

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Generated by roxygen2: do not edit by hand
22

3+
S3method(ES,default)
4+
S3method(ES,numeric)
35
S3method(VaR,default)
46
S3method(VaR,numeric)
57
S3method(predict,garch1c1)
@@ -10,14 +12,6 @@ export(VaR_cdf)
1012
export(VaR_qf)
1113
export(sim_garch1c1)
1214
importFrom(Rdpack,reprompt)
13-
importFrom(fGarch,dged)
14-
importFrom(fGarch,dstd)
15-
importFrom(fGarch,pged)
16-
importFrom(fGarch,pstd)
17-
importFrom(fGarch,qged)
18-
importFrom(fGarch,qstd)
19-
importFrom(fGarch,rged)
20-
importFrom(fGarch,rstd)
2115
importFrom(gbutils,cdf2quantile)
2216
importFrom(stats,quantile)
2317
importFrom(stats,runif)

NEWS.md

+21
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
# cvar 0.5 (CRAN)
2+
3+
* made `ES` generic (`VaR` was already generic).
4+
5+
* moved `fGarch` from Imports to Suggests.
6+
7+
* renamed argument `x` of `VaR` and `ES` to `p_loss`. `p_loss` seems more
8+
expressive and suggests that it relates to the losses, usually small numbers
9+
like `0.05`. Other suitable names like `alpha`, `p`, and `prob`, are commonly
10+
used as arguments to other functions that might be used as argument `dist` and
11+
make them more difficult to pass via the `...` arguments.
12+
13+
For now, an warning is issued if `x` is used as a named argument in a call
14+
(e.g. `VaR(dist, x = 0.05)`) with the intend to turn that in an error in the
15+
next release of the package. This change should not be noticed by most users
16+
since it is much more natural not to name this argument and use something like
17+
`VaR(dist, 0.05)`.
18+
19+
* moved `fGarch` from Imports to Suggests.
20+
21+
122
# cvar 0.4.1 (CRAN)
223

324
* when the input was numeric, `ES()` was not handling the level `x` properly

0 commit comments

Comments
 (0)