Learn R Programming

ReturnCurves (version 1.0.1)

adf_est: Estimation of the Angular Dependence Function (ADF)

Description

Estimation of the angular dependence function () introduced by WadsworthTawn2013;textualReturnCurves.

Usage

adf_est(
  margdata,
  w = NULL,
  method = c("hill", "cl"),
  q = 0.95,
  qalphas = rep(0.95, 2),
  k = 7,
  constrained = FALSE,
  tol = 1e-04,
  par_init = rep(0, k - 1)
)

Value

An object of S4 class adf_est.class. This object returns the arguments of the function and two extra slots:

interval:

A vector containing the maximum likelihood estimates from the conditional extremes model, ^1_x y and ^1_y x, if constrained = TRUE. If constrained = FALSE, then c(0, 1) is returned; we note that this has no meaningful interpretation as the estimation is performed in an unconstrained interval.

adf:

A vector containing the estimates of the angular dependence function.

Arguments

margdata

An S4 object of class margtransf.class. See margtransf for more details.

w

Sequence of rays between 0 and 1. Default is NULL, where a pre-defined grid is used.

method

String that indicates which method is used for the estimation of the angular dependence function. Must either be "hill", to use the Hill estimator Hill1975ReturnCurves, or "cl" to use the smooth estimator based on Bernstein-Bezier polynomials estimated by composite maximum likelihood.

q

Marginal quantile used to define the threshold u_ of the min-projection variable T^1 at ray (t^1_ = t_ - u_ | t_ > u_), and/or Hill estimator Hill1975ReturnCurves. Default is 0.95.

qalphas

A vector containing the marginal quantile used for the Heffernan and Tawn conditional extremes model HeffernanTawn2004ReturnCurves for each variable, if constrained = TRUE. Default is rep(0.95, 2).

k

Polynomial degree for the Bernstein-Bezier polynomials used for the estimation of the angular dependence function with the composite likelihood method MurphyBarltropetal2024ReturnCurves. Default is 7.

constrained

Logical. If FALSE (default) no knowledge of the conditional extremes parameters is incorporated in the angular dependence function estimation.

tol

Convergence tolerance for the composite maximum likelihood procedure. Success is declared when the difference of log-likelihood values between iterations does not exceed this value. Default is 0.0001.

par_init

Initial values for the parameters of the Bernstein-Bezier polynomials used for estimation of the angular dependence function with the composite likelihood method MurphyBarltropetal2024ReturnCurves. Default is rep(0, k-1).

Details

The angular dependence function () can be estimated through a pointwise estimator, obtained with the Hill estimator, or via a smoother approach, obtained using Bernstein-Bezier polynomials and estimated via composite likelihood methods.

Knowledge of the conditional extremes framework introduced by HeffernanTawn2004;textualReturnCurves can be incorporated by setting constrained = TRUE. Let ^1_x y=_x y / (1+_x y) and ^1_y x=1 /(1+_y x) with _x y and _y x being the conditional extremes parameters. After obtaining _x y and _y x via maximum likelihood estimation, ()= , 1- for [0, ^1_x y) (^1_y x, 1] and is estimated as before for [^1_x y,^1_y x]. For more details see MurphyBarltropetal2024;textualReturnCurves.

References

Examples

Run this code
library(ReturnCurves)

data(airdata)

n <- dim(airdata)[1]

margdata <- margtransf(airdata)

lambda <- adf_est(margdata = margdata, method = "hill")

plot(lambda)

# To see the the S4 object's slots
str(lambda)

# To access the estimates of the ADF
lambda@adf

# If constrained = T, the MLE estimates for the conditional extremes model
# can be accessed as
lambda@interval

Run the code above in your browser using DataLab