vec2pwm {lmomco} | R Documentation

## 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 (β_0, β_1, β_2, β_3, β_4).

### Usage

    vec2pwm(vec)

### Arguments

`vec` | A vector of PWM values in (β_0, β_1, β_2, β_3, β_4) order.

### Value

An R `list` is returned.

`BETA0` | The first PWM–equal to the arithmetic mean.
`BETA1` | The second PWM.
`BETA2` | The third PWM.
`BETA3` | The fourth PWM.
`BETA4` | The fifth PWM.

### Author(s)

W.H. Asquith

### See Also

`vec2lmom`

### Examples

    pwm <- vec2pwm(c(12,123,12,12,54))

[Package lmomco version 0.92 Index]