Learn R Programming

lmomco (version 1.7.3)

pwm2vec: Convert Probability-Weighted Moment object to a Vector of Probability-Weighted Moments

Description

This function converts a Probability-Weighted Moment object in the structure used by lmomco into a simple vector of $\beta_0$, $\beta_1$, $\beta_2$, $\beta_3$, $\beta_4$.

Usage

pwm2vec(pwm, ...)

Arguments

pwm
Probability-Weighted Moment object as from functions such as pwm and vec2pwm.
...
Not presently used.

Value

  • A vector of the first five Probability-Weighted Moments if available. The $betas field of the pwm argument is simply returned by this function.

See Also

pwm and vec2pwm

Examples

Run this code
pmr <- pwm(rnorm(40))
  pwm2vec(pmr)


  pmr <- vec2pwm(c(140,150,45,21))
  pwm2vec(pmr)

Run the code above in your browser using DataLab