pwm.beta2alpha | R Documentation |
Conversion of “beta” (the well known ones) to “alpha” probability-weighted moments (PWMs) by pwm.beta2alpha
or alpha to beta PWMs by pwm.alpha2beta
. The relations between the \alpha
and \beta
PWMs are
\alpha_r = \sum^r_{k=0} (-1)^k {r \choose k} \beta_k\mbox{,}
and
\beta_r = \sum^r_{k=0} (-1)^k {r \choose k} \alpha_k\mbox{.}
Lastly, note that the \beta
are almost exclusively used in the literature. Because each is a linear combination of the other, they are equivalent in meaning but not numerically.
pwm.beta2alpha(pwm)
pwm.alpha2beta(pwm)
pwm |
A vector of alpha or beta probability-weighted moments depending on which related function is called. |
If \beta_r \rightarrow \alpha_r
(pwm.beta2alpha
), a vector of the \alpha_r
. Note that convention is the have a \alpha_0
, but this is placed in the first index i=1
vector. Alternatively, if \alpha_r \rightarrow \beta_r
(pwm.alpha2beta
), a vector of the \beta_r
.
W.H. Asquith
# NEED
pwm
, pwm2lmom
X <- rnorm(100)
pwm(X)$betas
pwm.beta2alpha(pwm(X)$betas)
pwm.alpha2beta(pwm.beta2alpha(pwm(X)$betas))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.