PWM: Estimation of GPD's parameters by Probability Weighted...

Description Usage Arguments Value Author(s) References Examples

Description

Estimates the two parameters k and a of Pareto's cumulative distribution function on a given data set z using the probability weighted moments.

Usage

1
PWM(z)

Arguments

z

Data set - sorted list of real numbers.

Value

Returns a list of the estimators k and a of the parameters, as real numbers.

Author(s)

Marion

References

J. R. M. Hosking and J. R. Wallis, Parameter and Quantile Estimation for the Generalized Pareto Distribution, Technometrics. Available at http://www.jstor.org/stable/1269343.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
PWM(sort(rnorm(1e6)))

## The function is currently defined as
function (z)
{
  n <- length(z)
  p <- (seq.int(n)-0.35)/n
  t <- mean( (1-p)*z )
  mu <- mean(z)
  k <- mu/(mu-2*t)-2
  a <- 2*mu*t/(mu-2*t)
  list(a = a, k = k)

  }

genostats/tail.modeling documentation built on May 12, 2019, 7:42 a.m.