| lmom2par | R Documentation |
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, ...)
lmom |
An L-moment object such as that returned by |
type |
Three character (minimum) distribution type (for example, |
... |
Additional arguments for the |
x |
In the |
An R list is returned. This list should contain at least the following items, but some distributions such as the revgum have extra.
type |
The type of distribution in three character (minimum) format. |
para |
The parameters of the distribution. |
source |
Attribute specifying source of the parameters. |
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")
## Not run:
plot(pp(X), sort(X), xlab="PROBABILITY", ylab="CAUCHY")
lines(nonexceeds(), par2qua(nonexceeds(), cauchy))
lines(nonexceeds(), par2qua(nonexceeds(), slash), col=2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.