pwm2vec: Convert Probability-Weighted Moment object to a Vector

pwm2vecR Documentation

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 \beta_0, \beta_1, \beta_2, \beta_3, \beta_4, ..., \beta_{r-1}.

Usage

pwm2vec(pwm, ...)

Arguments

pwm

Probability-weighted moment object such as from 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.

Author(s)

W.H. Asquith

See Also

pwm, vec2pwm, lmom2vec

Examples

  pmr <- pwm(rnorm(40));             pwm2vec(pmr)
  pmr <- vec2pwm(c(140,150,45,21));  pwm2vec(pmr)

lmomco documentation built on May 29, 2024, 10:06 a.m.