EMV: Estimation of GPD's parameters by Maximum Likelihood

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 maximum of likelihood.

Usage

1
EMV(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

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
EMV(tail(sort(rnorm(1e6)),500))

## The function is currently defined as
function (z)
{
  u <- optimize(function(u) Lp(u,z), c(-10, min(1/z)), maximum=TRUE )$maximum
  if(u == 0)
    return(list( a = mean(z), k = 0))
  k <- k_func(u, z)
  list(a = k/u, k = k)
  }

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