Learn R Programming

cdfquantreg (version 1.3.1-2)

qrPwlm: Probability Weighted L-moment Skewness and Kurtosis

Description

Calculate the skew and kurtosis statistics based on probability weighted moments, via simulation method.

Usage

qrPwlm(x, n = NULL, mu = NULL, sigma = NULL, fd = NULL, sd = NULL)

Value

The tau3(skew) and tau4(kurtosis) values of the L-moment.

Arguments

x

The vector of values for the calculation of Skewness and Kurtosis.

n

The number of samples drawn in the simulation. The higher this value, the greater accuracy.

mu

vector of means.

sigma

vector of standard deviations.

fd

A string that specifies the parent distribution.

sd

A string that specifies the sub-family distribution.

Details

This function computes the L-moment measures of skew and kurtosis, which may be computed via linear combinations of probability-weighted moments (Greenwood, Landwehr, Matalas and Wallis, 1979).

References

Greenwood, J. A., Landwehr, J. M., Matalas, N. C., & Wallis, J. R. (1979). Probability weighted moments: definition and relation to parameters of several distributions expressable in inverse form. Water Resources Research, 15(5), 1049-1054.

Examples

Run this code
qrPwlm(n = 1000, mu = 0.5, sigma = 1, fd = 't2', sd = 't2')

Run the code above in your browser using DataLab