Skip to content
/ extreme Public

R package for estimation of elliptical extreme quantile regions

License

Notifications You must be signed in to change notification settings

perej1/extreme

Repository files navigation

extreme

R-CMD-check

Overview

extreme is a R package for estimating multivariate elliptical (1-p)-quantile regions. Currently, there are two available estimators. The first one is based on sample quantile and works well when the quantile region is on range of the data. The second one is based on a well known extreme quantile estimator for heavy-tailed distributions and works well for small values of p. For example, it can be that p is so small that the corresponding quantile is on the right-hand side of all the observations.

Installation

You can install the development version of extreme from Github with:

# install.packages("devtools")
devtools::install_github("perej1/extreme")

Usage

Essentially, the package provides two functionalities.

  1. Generate a sample from an elliptical distribution with function relliptical.

  2. Calculate quantile region estimate with function qreg. Function qreg returns an ellipsoidq object representing the elliptical quantile estimate.

Example

For an example, see repository perej1/elliptical-sim.