Description Usage Arguments Details Value Author(s) Examples
Transforms GEV data to unit Frechet ones and vice versa
1 2 |
x |
The data to be transformed to unit Frechet or ordinary GEV margins |
loc, scale, shape |
The location, scale and shape parameters of the GEV. |
emp |
Logical. If |
If Y is a random variable with a GEV distribution with location μ, scale σ and shape ξ. Then,
Z = [1 + ξ (Y - μ) / σ]_+^(1/ξ)
is unit Frechet distributed - where x_+ = max(0, x).
If Z is a unit Frechet random variable. Then,
Y = μ + σ (Z_+^(ξ) - 1) / ξ
is unit GEV distributed with location, scale and shape parameters equal to μ, σ and ξ respectively.
Returns a numeric vector with the same length of x
Mathieu Ribatet
1 2 3 4 5 |
[1] 1.8404710 1.3667970 1.1776129 0.4578484 1.8211427 0.5105137
[7] 21.7781994 0.4207148 0.7727342 0.3673129
[1] 2.2975896 1.6448808 1.3323833 -0.4464904 2.2737603 -0.2581876
[7] 9.5184398 -0.5899699 0.4974283 -0.8152157
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.