are.par.valid | R Documentation |
This function is a dispatcher on top of the are.parCCC.valid
functions, where CCC
represents the distribution type: aep4
, cau
, emu
, exp
, gam
, gep
, gev
, glo
, gno
, gov
, gpa
, gum
, kap
, kmu
, kur
, lap
, ln3
, nor
, pe3
, ray
, revgum
, rice
, sla
, smd
, st3
, texp
, tri
, wak
, or wei
. For lmomco functionality, are.par.valid
is called only by vec2par
in the process of converting a vector into a proper distribution parameter object.
are.par.valid(para, paracheck=TRUE, ...)
para |
A distribution parameter object having at least attributes |
paracheck |
A logical controlling whether the parameters are checked for validity and if |
... |
Additional arguments for the |
TRUE |
If the parameters are consistent with the distribution specified by the |
FALSE |
If the parameters are not consistent with the distribution specified by the |
W.H. Asquith
Asquith, W.H., 2011, Distributional analysis with L-moment statistics using the R environment for statistical computing: Createspace Independent Publishing Platform, ISBN 978–146350841–8.
vec2par
, dist.list
vec <- c(12, 120) # parameters of exponential distribution
para <- vec2par(vec, "exp") # build exponential distribution parameter
# object
# The following two conditionals are equivalent as are.parexp.valid()
# is called within are.par.valid().
if( are.par.valid(para)) Q <- quaexp(0.5, para)
if(are.parexp.valid(para)) Q <- quaexp(0.5, para)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.