pel {lmomPi} | R Documentation |
Generic function for pel...
Description
Generic function for pel...
: probability distribution fitting with L-Moments
Usage
pel(
distrib = c("exp", "gam", "gev", "glo", "gpa", "gno", "gum", "kap", "ln3", "nor",
"pe3", "wak", "wei"),
lmom = NULL,
probability_distribution_attrname = "probability_distrib",
x = NULL,
nmom = 5,
sort.data = TRUE,
ratios = sort.data,
trim = 0,
indices = NULL,
spi.scale = NA,
correction = NULL,
...
)
pel_x(x, ...)
pel_lmom(lmom, ...)
Arguments
distrib |
character string indicating the probability distribution to fit |
lmom , ... |
L-moments and further parameters for |
probability_distribution_attrname |
attribute name for probability distribution |
x |
vector containg sample. It is utiled to calculete L-moments in case |
nmom , sort.data , ratios , trim |
arguments for |
indices |
optional index or tag character vector of the same length of |
spi.scale |
integer value or |
correction |
numeric value correction for the 3rd (and higher) L-moment estimation. Default is |
Details
pel_x
and pel_lmom
are wrapper functions of pel
whose first argument is x
or lmom
respectively.
Value
A numeric vector containing the parameters of the selected probability distribution. It is a list in case of selection of several probability distributions (i.e. length(distrib)>1
).
See Also
pel...
,pelexp
,pelgam
,pelgev
,pelglo
,pelgpa
,
pelgno
,pelgum
,pelkap
,pelln3
,pelnor
,
Examples
# Sample L-moments of Ozone from the airquality data
data(airquality)
lmom <- samlmu(airquality$Ozone,nmom=6)
distrib <- "gev"
# Fit a GEV distribution
out_gev <- pel(distrib=distrib,lmom=lmom)
distrib <- c("exp","gam","gev","glo","gpa","gno","gum","kap","ln3",
"nor","pe3","wak","wei")
out_list <- pel(distrib=distrib,lmom=lmom)