PWM: Probability weighted moments

Description Usage Arguments Value See Also Examples

View source: R/PWM.R

Description

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

Usage

1
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

1
2
3
PWM(rnorm(25))
PWM(rnorm(25), order = 2)
PWM(rnorm(25), order = c(0, 2, 4))

Example output

Loading required package: Rcpp
     beta0 
-0.0462554 
    beta2 
0.2782982 
    beta0     beta2     beta4 
0.1325718 0.3092535 0.2312255 

TLMoments documentation built on Dec. 4, 2019, 5:06 p.m.