Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fun.rawmoments

Computes the raw moments of the generalised lambda distribution up to 4th order.


Description

This function is of theoretical interest only.

Usage

fun.rawmoments(L1, L2, L3, L4, param = "fmkl")

Arguments

L1

Location parameter of the generalised lambda distribution.

L2

Scale parameter of the generalised lambda distribution.

L3

First shape parameter of the generalised lambda distribution.

L4

Second shape parameter of the generalised lambda distribution.

param

"rs" or "fmkl" specifying the type of the generalised lambda distribution.

Details

This function is the building block for fun.theo.bi.mv.gld.

Value

A vector showing the raw moments of the specified generalised lambda distribution up to the fourth order.

Author(s)

Steve Su

References

Freimer, M., Mudholkar, G. S., Kollia, G. & Lin, C. T. (1988), A study of the generalized tukey lambda family, Communications in Statistics - Theory and Methods *17*, 3547-3567.

Karian, Zaven A. and Dudewicz, Edward J. (2000), Fitting statistical distributions: the Generalized Lambda Distribution and Generalized Bootstrap methods, Chapman & Hall

Ramberg, J. S. & Schmeiser, B. W. (1974), An approximate method for generating asymmetric random variables, Communications of the ACM *17*, 78-82.

See Also

~~objects to See Also as help, ~~~

Examples

## Generate some random numbers using FMKL and RS generalised lambda 
## distributions and then compute the empirical and theoretical 
## E(X), E(X^2), E(X^3), E(X^4) 

junk<-rgl(100000,1,2,3,4)
mean(junk)
mean(junk^2)
mean(junk^3)
mean(junk^4)

junk<-rgl(100000,1,2,3,4,"rs")
mean(junk)
mean(junk^2)
mean(junk^3)
mean(junk^4)

fun.rawmoments(1,2,3,4)
fun.rawmoments(1,2,3,4,"rs")

GLDEX

Fitting Single and Mixture of Generalised Lambda Distributions (RS and FMKL) using Various Methods

v2.0.0.7
GPL (>= 3)
Authors
Steve Su, with contributions from: Diethelm Wuertz, Martin Maechler and Rmetrics core team members for low discrepancy algorithm, Juha Karvanen for L moments codes, Robert King for gld C codes and starship codes, Benjamin Dean for corrections and input in ks.gof code and R core team for histsu function.
Initial release
2020-02-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.