pdfgld: Probability Density Function of the Generalized Lambda...

pdfgldR Documentation

Probability Density Function of the Generalized Lambda Distribution


This function computes the probability density function of the Generalized Lambda distribution given parameters (ξ, α, κ, and h) computed by pargld or similar. The probability density function is

f(x) = {[(κ[F(x)^{κ-1}] + h[1-F(x)])^{h-1})\timesα]}^{-1} \mbox{,}

where f(x) is the probability density function at x, F(x) is the cumulative distribution function at x.


pdfgld(x, para, paracheck)



A real value vector.


The parameters from pargld or vec2par.


A logical switch as to whether the validity of the parameters should be checked. Default is paracheck=TRUE. This switch is made so that the root solution needed for cdfgld exhibits an extreme speed increase because of the repeated calls to quagld.


Probability density (f) for x.


W.H. Asquith


Asquith, W.H., 2007, L-moments and TL-moments of the generalized lambda distribution: Computational Statistics and Data Analysis, v. 51, no. 9, pp. 4484–4496.

Karian, Z.A., and Dudewicz, E.J., 2000, Fitting statistical distributions—The generalized lambda distribution and generalized bootstrap methods: CRC Press, Boca Raton, FL, 438 p.

See Also

cdfgld, quagld, lmomgld, pargld


## Not run: 
# Using Karian and Dudewicz, 2000, p. 10
gld <- vec2par(c(0.0305,1/1.3673,0.004581,0.01020),type='gld')
quagld(0.25,gld) # which equals about 0.028013 as reported by K&D
pdfgld(0.028013,gld) # which equals about 43.04 as reported by K&D
F <- seq(.001,.999,by=.001)
x <- quagld(F,gld)
plot(x, pdfgld(x,gld), type='l', xlim=c(0,.1))

## End(Not run)

lmomco documentation built on Aug. 27, 2022, 1:06 a.m.