Learn R Programming

TLMoments (version 0.7.5.3)

PWM: Probability weighted moments

Description

Calculates empirical probability weighted moments of specific order(s).

Usage

PWM(x, order = 0, na.rm = FALSE)

Arguments

x

numeric vector of data.

order

integer, order of probability weighted moment, can be a set of {0,1,...}.

na.rm

logical, indicates if NAs should be removed.

Value

numeric vector, empirical PWM of orders order of x.

See Also

PWMs

Examples

Run this code
# NOT RUN {
PWM(rnorm(25))
PWM(rnorm(25), order = 2)
PWM(rnorm(25), order = c(0, 2, 4))
# }

Run the code above in your browser using DataLab