Skip to content

Commit e86e745

Browse files
committed
Robust diag [draft], EGP [draft], geometric aniso
1 parent 6e511dc commit e86e745

28 files changed

Lines changed: 6192 additions & 2909 deletions

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: mev
22
Type: Package
33
Title: Modelling of Extreme Values
4-
Version: 1.17.1
4+
Version: 1.17.10002
55
Authors@R: c(person(given="Leo", family="Belzile", role = c("aut", "cre"), email = "belzilel@gmail.com", comment = c(ORCID = "0000-0002-9135-014X")), person(given="Jennifer L.", family="Wadsworth", role=c("aut")), person(given="Paul J.", family="Northrop", role=c("aut"), comment = c(ORCID = "0000-0002-1992-4882")), person(given="Scott D.", family="Grimshaw", role=c("aut"), comment = c(ORCID = "0000-0002-6326-9360")), person(given="Jin", family="Zhang", role=c("ctb")), person(given="Michael A.", family="Stephens", role=c("ctb")), person(given="Art B.", family="Owen", role=c("ctb")), person(given="Raphael", family="Huser", role=c("aut"), comment = c(ORCID = "0000-0002-1228-2071")))
66
Description: Various tools for the analysis of univariate, multivariate and functional extremes. Exact simulation from max-stable processes [Dombry, Engelke and Oesting (2016) <doi:10.1093/biomet/asw008>, R-Pareto processes for various parametric models, including Brown-Resnick (Wadsworth and Tawn, 2014, <doi:10.1093/biomet/ast042>) and Extremal Student (Thibaud and Opitz, 2015, <doi:10.1093/biomet/asv045>). Threshold selection methods, including Wadsworth (2016) <doi:10.1080/00401706.2014.998345>, and Northrop and Coleman (2014) <doi:10.1007/s10687-014-0183-z>. Multivariate extreme diagnostics. Estimation and likelihoods for univariate extremes, e.g., Coles (2001) <doi:10.1007/978-1-4471-3675-0>.
77
License: GPL-3
@@ -23,6 +23,7 @@ Suggests:
2323
MASS,
2424
mvPot (>= 0.1.4),
2525
mvtnorm,
26+
numDeriv,
2627
gmm,
2728
revdbayes,
2829
rmarkdown,

NAMESPACE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export(clikmgp)
6666
export(cvselect)
6767
export(dextgp)
6868
export(dextgp.G)
69+
export(dgeoaniso)
6970
export(dgev)
7071
export(dgp)
7172
export(distg)
@@ -161,6 +162,7 @@ export(infomat.test)
161162
export(intensBR)
162163
export(intensXstud)
163164
export(jac)
165+
export(kjtail)
164166
export(lambdadep)
165167
export(likmgp)
166168
export(maxstabtest)
@@ -223,6 +225,7 @@ importFrom(Rsolnp,solnp)
223225
importFrom(alabama,auglag)
224226
importFrom(alabama,constrOptim.nl)
225227
importFrom(grDevices,"colorRampPalette")
228+
importFrom(grDevices,hcl.colors)
226229
importFrom(grDevices,rainbow)
227230
importFrom(grDevices,rgb)
228231
importFrom(graphics,"abline")

NEWS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44

55
- Stein's weighted generalized Pareto estimator with `fit.wgpd`
66
- Multiple shape estimators (Hill, Pickands, moment estimator, generalized quantile) via `fit.shape` and specific routines `shape.moment`, `shape.pickands`, `shape.pickandsxu`, `shape.genquant` and `shape.hill`.
7+
- Function `dgeoaniso` for geometric anisotropy, using the parametrization of Rai and Brown (2025)
78

89
## Changes:
910

10-
- Function `PickandsXU` is deprecated and replaced with `shape.pickandsxu`,
11+
- Function `PickandsXU` is deprecated and replaced with `shape.pickandsxu`
12+
- Function `fit.gpd` with method `obre` now returns ordered exceedances and weights.
1113

1214
# mev 1.17 (Release date 2024-07-09)
1315

R/RcppExports.R

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,34 @@
66
#' The function computes the distance between locations, with geometric anisotropy.
77
#' The parametrization assumes there is a scale parameter, say \eqn{\sigma}, so that \code{scale}
88
#' is the distortion for the second component only. The angle \code{rho} must lie in
9-
#' \eqn{[-\pi/2, \pi/2]}. The dilation and rotation matrix is
9+
#' \eqn{[-\pi/2, \pi/2]}. The dilation and rotation matrix is
1010
#' \deqn{\left(\begin{matrix} \cos(\rho) & \sin(\rho) \\ - \sigma\sin(\rho) & \sigma\cos(\rho) \end{matrix} \right)}
1111
#' @param loc a \code{d} by 2 matrix of locations giving the coordinates of a site per row.
1212
#' @param scale numeric vector of length 1, greater than 1.
1313
#' @param rho angle for the anisotropy, must be larger than \eqn{\pi/2} in modulus.
1414
#' @return a \code{d} by \code{d} square matrix of pairwise distance
1515
#' @export
16+
#' @keywords internal
1617
distg <- function(loc, scale, rho) {
1718
.Call(`_mev_distg`, loc, scale, rho)
1819
}
1920

21+
#' Distance matrix with geometric anisotropy
22+
#'
23+
#' The function computes the distance between locations, with geometric anisotropy.
24+
#' Consider real parameters \eqn{\theta_1} and \eqn{theta_2}, and the transformation \eqn{\psi=\arctan(\theta_1/\theta_2)/2} and \eqn{r=1 +\theta_1^2 + \theta_2^2}.
25+
#' The dilation and rotation matrix is
26+
#' \deqn{\left(\begin{matrix} \sqrt{r}\cos(\rho) & -\sqrt{r}\sin(\rho) \\ \sin(\rho)/\sqrt{r} & \cos(\rho)/\sqrt{r} \end{matrix} \right).}
27+
#'
28+
#' @param loc a \code{d} by 2 matrix of locations giving the coordinates of a site per row.
29+
#' @param theta numeric vector of length 2, real parameters
30+
#' @references Rai, K. and Brown, P.E. (2025), A parameter transformation of the anisotropic Matérn covariance function. Canadian Journal of Statistics e11839. \doi{10.1002/cjs.11839}
31+
#' @return a \code{d} by \code{d} square matrix of pairwise distance
32+
#' @export
33+
dgeoaniso <- function(loc, theta) {
34+
.Call(`_mev_dgeoaniso`, loc, theta)
35+
}
36+
2037
.EuclideanWeights <- function(x, mu) {
2138
.Call(`_mev_EuclideanWeights`, x, mu)
2239
}

0 commit comments

Comments
 (0)