
This function converts L-moments to the parameters of a distribution. The type of distribution is specified in the argument list:
aep4
, cau
, emu
, exp
, gam
, gep
,
gev
, gld
, glo
, gno
, gov
,
gpa
, gum
, kap
, kmu
, kur
,
lap
, lmrq
, ln3
, nor
, pe3
,
ray
, revgum
, rice
, sla
, st3
,
texp
, wak
, or wei
.
lmom2par(lmom, type, ...)
lmr2par(x, type, ...)
An R
list
is returned. This list should contain at least the following items, but some distributions such as the revgum
have extra.
The type of distribution in three character (minimum) format.
The parameters of the distribution.
Attribute specifying source of the parameters.
An L-moment object such as that returned by lmoms
or pwm2lmom
.
Three character (minimum) distribution type (for example, type="gev"
).
Additional arguments for the parCCC
functions.
In the lmr2par
call the L-moments are computed from the mle2par
and mps2par
.
W.H. Asquith
par2lmom
lmr <- lmoms(rnorm(20))
para <- lmom2par(lmr,type="nor")
# The lmom2par() calls will error if trim != 1.
X <- rcauchy(20)
cauchy <- lmom2par(TLmoms(X, trim=1), type="cau")
slash <- lmom2par(TLmoms(X, trim=1), type="sla")
if (FALSE) {
plot(pp(X), sort(X), xlab="PROBABILITY", ylab="CAUCHY")
lines(nonexceeds(), par2qua(nonexceeds(), cauchy))
lines(nonexceeds(), par2qua(nonexceeds(), slash), col=2)
}
Run the code above in your browser using DataLab