| pargev | R Documentation |
This function estimates the parameters of the Generalized Extreme Value distribution given the L-moments of the data in an L-moment object such as that returned by lmoms. The relations between distribution parameters and L-moments are seen under lmomgev.
pargev(lmom, checklmom=TRUE, useHosking=TRUE, ...)
lmom |
An L-moment object created by |
checklmom |
Should the |
useHosking |
A logical to use the old Hosking (1996) FORTRAN coefficients or use direct computation by |
... |
Other arguments to pass. |
An R list is returned.
type |
The type of distribution: |
para |
The parameters of the distribution. |
source |
The source of the parameters: “pargev”. |
W.H. Asquith
Hosking, J.R.M., 1990, L-moments—Analysis and estimation of distributions using linear combinations of order statistics: Journal of the Royal Statistical Society, Series B, v. 52, pp. 105–124.
Hosking, J.R.M., 1996, FORTRAN routines for use with the method of L-moments: Version 3, IBM Research Report RC20525, T.J. Watson Research Center, Yorktown Heights, New York.
Hosking, J.R.M., and Wallis, J.R., 1997, Regional frequency analysis—An approach based on L-moments: Cambridge University Press.
lmomgev,
cdfgev, pdfgev, quagev
lmr <- lmoms(rnorm(20))
pargev(lmr)
## Not run:
set.seed(1)
Tau3 <- runif(500000, min=-1, max=1)
system.time(H <- sapply(Tau3, function(t) {
pargev(vec2lmom(c(0,1,t)), useHosking=TRUE )$para[3] }))
# user system elapsed
# 8.036 0.033 8.198
system.time(W <- sapply(Tau3, function(t) {
pargev(vec2lmom(c(0,1,t)), useHosking=FALSE)$para[3] }))
# user system elapsed
# 19.348 0.062 19.737
# By useHosking=FALSE is about 2.4 times slower but still fast.
max(abs(H-W)) # 3.131861e-07 # Viability of either algorithm is proven.
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.