-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
46 lines (31 loc) · 1.51 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# extreme
<!-- badges: start -->
[![R-CMD-check](https://github.com/perej1/extreme/workflows/R-CMD-check/badge.svg)](https://github.com/perej1/extreme/actions)
<!-- badges: end -->
## 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:
``` r
# 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](https://github.com/perej1/elliptical-sim).