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

gl.check.lambda.alt1

Checks whether the parameters provided constitute a valid generalised lambda distribution.


Description

A replacement to the gl.check.lambda function in gld package.

Usage

gl.check.lambda.alt1(l1, l2 = NULL, l3 = NULL, l4 = NULL, 
param = "fmkl", vect = FALSE)

Arguments

l1

Lambda 1.

l2

Lambda 2.

l3

Lambda 3.

l4

Lambda 4.

param

"rs" or "fmkl" generalised lambda distribution.

vect

A logical, set this to TRUE if the parameters are given in the vector form (it turns off checking of the format of 'lambdas' and the other lambda arguments

Details

This is a modified gl.check.lambda function in replace of gld library's gl.check.lambda function to allow for 5 parameters FMKL distributions and vector input of parameter values into this function.

Value

A logical value, TRUE or FALSE. TRUE indicates the parameters given is a valid probability distribution.

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, Z.E., Dudewicz, E.J., and McDonald, P. (1996), The extended generalized lambda distribution system for fitting distributions to data: history, completion of theory, tables, applications, the “Final Word” on Moment fits, Communications in Statistics - Simulation and Computation *25*, 611-642.

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

See Also

Examples

gl.check.lambda.alt1(c(0,1,.23,4.5),param="fmkl",vect=TRUE) 
## TRUE, Using vector input of parameter values.
gl.check.lambda.alt1(0,-1,.23,4.5,param="fmkl") ## FALSE 
gl.check.lambda.alt1(0,1,0.5,-0.5,param="rs") ## FALSE

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.