vec2pwm {lmomco} | R Documentation |
This function converts a vector of Probability-Weighted Moments (PWM) to a PWM
object of this package. The object is an R list
. This function is intended
to facilitate the use of PWM that the user might have from other sources. The
first five PWMs are supported (β_0, β_1, β_2,
β_3, β_4).
vec2pwm(vec)
vec |
A vector of PWM values in (β_0, β_1, β_2, β_3, β_4) order. |
An R list
is returned.
BETA0 |
The first PWM–equal to the arithmetic mean. |
BETA1 |
The second PWM. |
BETA2 |
The third PWM. |
BETA3 |
The fourth PWM. |
BETA4 |
The fifth PWM. |
W.H. Asquith
pwm <- vec2pwm(c(12,123,12,12,54))