vec2pwm: Convert a Vector of Probability-Weighted Moments to a Probability-Weighted Moments Object
Description
This function converts a vector of probability-weighted moments (PWM) to a PWM
object of lmomco. The object is an Rlist. This function is intended
to facilitate the use of PWM that the user might have from other sources. The
first five PWMs are supported (\(\beta_0\), \(\beta_1\), \(\beta_2\),
\(\beta_3\), \(\beta_4\)) if as.list=FALSE otherwise the \(\beta_r\) are unlimited.
Usage
vec2pwm(vec, as.list=FALSE)
Value
An R
list is returned if as.list=TRUE.
BETA0
The first PWM, which is equal to the arithmetic mean.
BETA1
The second PWM.
BETA2
The third PWM.
BETA3
The fourth PWM.
BETA4
The fifth PWM.
source
Source of the PWMs: “vec2pwm”.
Another R
list is returned if as.list=FALSE.
betas
The PWMs.
source
Source of the PWMs: “vec2pwm”.
Arguments
vec
A vector of PWM values in (\(\beta_0\), \(\beta_1\), \(\beta_2\), \(\beta_3\), \(\beta_4\)) order.
as.list
A logical controlling the returned data structure.