vec2pwm: Convert a Vector of Probability-Weighted Moments to a...

Description Usage Arguments Value Author(s) See Also Examples

Description

This function converts a vector of probability-weighted moments (PWM) to a PWM object of lmomco. 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) if as.list=FALSE otherwise the β_r are unlimited.

Usage

1

Arguments

vec

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

as.list

A logical controlling the returned data structure.

Value

An R list is returned if as.list=TRUE.

BETA0

The first PWM, which is equal to the arithmetic mean.

BETA1

The second PWM.

BETA2

The third PWM.

BETA3

The fourth PWM.

BETA4

The fifth PWM.

source

Source of the PWMs: “vec2pwm”.

Another R list is returned if as.list=FALSE.

betas

The PWMs.

source

Source of the PWMs: “vec2pwm”.

Author(s)

W.H. Asquith

See Also

vec2lmom, lmom2pwm, pwm2lmom

Examples

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

lmomco documentation built on March 14, 2020, 5:06 p.m.