50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

lmomco (version 2.4.14)

pwm2vec: Convert Probability-Weighted Moment object to a Vector

Description

This function converts a probability-weighted moment object in the structure used by lmomco into a simple vector of β0, β1, β2, β3, β4, ..., βr1.

Usage

pwm2vec(pwm, ...)

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.

Arguments

pwm

Probability-weighted moment object such as from pwm and vec2pwm.

...

Not presently used.

Author

W.H. Asquith

See Also

pwm, vec2pwm, lmom2vec

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