Lp: Loglikelihood of Pareto's cumulative distribution function

Description Usage Arguments Value Author(s) Examples

Description

Computes the loglikelihood of Pareto's cumulative distribution function for a given data set z.

Usage

1
Lp(u,z)

Arguments

u

Real number

z

Data set - list of real numbers

Value

Returns the value of the loglikelihood.

Author(s)

Marion

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
Lp(0,sort(rnorm(1e6)))

## The function is currently defined as
function (u,z)
{
  n <- length(z)
  if(u == 0)
    return( -n*(log(mean(z)) + 1) )
  k <- k_func(u,z)
  n*(log(u/k) + k - 1)
}

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