Learn R Programming

lmomco (version 0.88)

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 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 ($\beta_0$, $\beta_1$, $\beta_2$, $\beta_3$, $\beta_4$).

Usage

vec2pwm(vec)

Arguments

vec
A vector of PWM values in ($\beta_0$, $\beta_1$, $\beta_2$, $\beta_3$, $\beta_4$) order.

Value

  • An R list is returned.
  • BETA0The first PWM--equal to the arithmetic mean.
  • BETA1The second PWM.
  • BETA2The third PWM.
  • BETA3The fourth PWM.
  • BETA4The fifth PWM.

See Also

vec2lmom

Examples

Run this code
pwm <- vec2pwm(c(12,123,12,12,54))

Run the code above in your browser using DataLab