Calc.Mu: Generalised Pareto Distribution theoretical and empirical...

Description Usage Arguments Details Author(s) Examples

View source: R/Calc.Mu.R

Description

Calculates the difference between the theoretical mean for the Generalised Pareto Distribution (GPD) and the empirical mean of some data.

Usage

1
Calc.Mu(mu, xi, sigma, mean)

Arguments

mu

a number indicating the location parameter for the GPD.

xi

a number indicating the shape parameter for the GPD.

sigma

a number indicating the scale parameter for the GPD.

mean

a number indicating the sample mean.

Details

The inputs must be numeric and a single value.

For this function to be well defined, xi<1.

All parameters must be provided.

This function can be optimised to find the fitted value of the location parameter mu for the GPD if the scale and shape parameters are known.

Author(s)

Alison Telford <mm11ajt@leeds.ac.uk>

Examples

1
2
3
	data = rnorm(100)
	m = mean(data)
	Calc.Mu(0.5,0.5,0.5,m)

CramTest documentation built on May 2, 2019, 5:08 a.m.