Learn R Programming

AutoSEARCH (version 1.5)

gedestp: Estimate and compute log-likelihood of the standardised Generalised Error Distribution (GED)

Description

gedestp and gedlogl are auxiliary functions called by gets.mean and gets.vol.

The gedestp function estimates the shape parameter of a standardised (zero mean, unit variance) GED. The estimation method is based on an index of kurtosis approach, and the code is based on the estimatep function from the normalp package by Angelo M. Mineo.

The gedlogl function computes the log-likelihood of a standardised GED with shape parameter p.

Usage

gedestp(x, method = c("inverse", "direct")) gedlogl(z, p = 2)

Arguments

x
numeric vector
z
numeric vector
method
"inverse" or "direct"
p
numeric value, the shape parameter

Value

numeric, either an estimate of the shape parameter or the log-likelihood

References

Mineo, A.M. (1994): 'Un nuovo metodo di stima di p per una corretta valutazione dei parametri diintensita e di scala di una curva normale di ordine p', Atti della XXXVII Riunione Scientifica della Societa Italiana di Statistica, San Remo, Vol. 2, pp. 147-154

See Also

gets.mean, gets.vol

Examples

Run this code
#estimate p of a standard normal:
set.seed(123)
x <- rnorm(200)
gedestp(x)

#log-likelihood of the standard normal series:
gedlogl(x, p=2)

Run the code above in your browser using DataLab