Description Usage Arguments Details Author(s) Examples
Density, cumulative density, quantiles and random number generation for the generalized Pareto distribution
1 2 3 4 |
x, q, p |
Value, quantile or probability respectively. |
n |
Number of random numbers to simulate. |
sigma |
Scale parameter. |
xi |
Shape parameter. |
u |
Threshold |
log.d, log.p |
Whether or not to work on the log scale. |
lower.tail |
Whether to return the lower tail. |
The functions were originally based on code due to Stuart Coles and which
appears in the ismev
package. The functions have been vectorized and
tested.
Random number generation is done by inversion of the distribution function. Code written by Harry Southworth.
Janet E Heffernan, Harry Southworth
1 2 3 4 5 |
Loading required package: mvtnorm
Loading required package: ggplot2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.