GLDEX2.0.0.9.3 package

Fitting Single and Mixture of Generalised Lambda Distributions

digitsBase

Digit/Bit Representation of Integers in any Base

fittingfunctions

This is a collection of functions designed to implement the fitting al...

FMKLfittingandbasicfunctions

This is a collection of functions designed to find the initial values ...

fun.auto.bimodal.ml

Fitting mixture of generalied lambda distribtions to data using maximu...

fun.auto.bimodal.pml

Fitting mixture of generalied lambda distribtions to data using pariti...

fun.auto.bimodal.qs

Fitting mixtures of generalied lambda distribtions to data using quant...

fun.beta

This is a collection of functions used in the calculation of the beta ...

fun.bimodal.fit.ml

Finds the final fits using the maximum likelihood estimation for the b...

fun.bimodal.fit.pml

Finds the final fits using partition maximum likelihood estimation for...

fun.bimodal.init

Finds the initial values for optimisation in fitting the bimodal gener...

fun.check.gld.multi

Check whether the RS or FMKL/FKML GLD is a valid GLD for vectors of L1...

fun.check.gld

Check whether the RS or FMKL/FKML GLD is a valid GLD for single values...

fun.class.regime.bi

Classifies data into two groups using a clustering regime.

fun.comp.moments.ml.2

Compare the moments of the data and the fitted univariate generalised ...

fun.comp.moments.ml

Compare the moments of the data and the fitted univariate generalised ...

fun.data.fit.hs.nw

Fit RS and FMKL generalised distributions to data using discretised ap...

fun.data.fit.hs

Fit RS and FMKL generalised distributions to data using discretised ap...

fun.data.fit.lm

Fit data using L moment matching estimation for RS and FMKL GLD

fun.data.fit.ml

Fit data using RS, FMKL maximum likelihood estimation and the FMKL sta...

fun.data.fit.mm

Fit data using moment matching estimation for RS and FMKL GLD

fun.data.fit.qs

Fit data using quantile matching estimation for RS and FMKL GLD

fun.diag.ks.g.bimodal

Compute the simulated Kolmogorov-Smirnov tests for the bimodal dataset

fun.diag.ks.g

Compute the simulated Kolmogorov-Smirnov tests for the unimodal datase...

fun.diag1

Diagnostic function for theoretical distribution fits through the resa...

fun.diag2

Diagnostic function for empirical data distribution fits through the r...

fun.disc.estimation

Estimates the mean and variance after cutting up a vector of variable ...

fun.gen.qrn

Finds the low discrepancy quasi random numbers

fun.lm.theo.gld

Find the theoretical first four L moments of the generalised lambda di...

fun.mApply

Applying functions based on an index for a matrix.

fun.minmax.check.gld

Check whether the specified GLDs cover the minimum and the maximum val...

fun.moments.bimodal

Finds the moments of fitted mixture of generalised lambda distribution...

fun.moments.r

Calculate mean, variance, skewness and kurtosis of a numerical vector

fun.nclass.e

Estimates the number of classes or bins to smooth over in the discreti...

fun.plot.fit.bm

Plotting mixture of two generalised lambda distributions on the data s...

fun.plot.fit

Plotting the univariate generalised lambda distribution fits on the da...

fun.plot.many.gld

Plotting many univariate generalised lambda distributions on one page.

fun.rawmoments

Computes the raw moments of the generalised lambda distribution up to ...

fun.RMFMKL.hs.nw

Fit FMKL generalised distribution to data using discretised approach w...

fun.RMFMKL.hs

Fit FMKL generalised distribution to data using discretised approach w...

fun.RMFMKL.lm

Fit FMKL generalised lambda distribution to data set using L moment ma...

fun.RMFMKL.ml.m

Fit RS generalised lambda distribution to data set using maximum likel...

fun.RMFMKL.ml

Fit FMKL generalised lambda distribution to data set using maximum lik...

fun.RMFMKL.mm

Fit FMKL generalised lambda distribution to data set using moment matc...

fun.RMFMKL.qs

Fit FMKL generalised lambda distribution to data set using quantile ma...

fun.RPRS.hs.nw

Fit RS generalised distribution to data using discretised approach wit...

fun.RPRS.hs

Fit RS generalised distribution to data using discretised approach wit...

fun.RPRS.lm

Fit RS generalised lambda distribution to data set using L moment matc...

fun.RPRS.ml.m

Fit RS generalised lambda distribution to data set using maximum likel...

fun.RPRS.ml

Fit RS generalised lambda distribution to data set using maximum likel...

fun.RPRS.mm

Fit RS generalised lambda distribution to data set using moment matchi...

fun.RPRS.qs

Fit RS generalised lambda distribution to data set using quantile matc...

fun.simu.bimodal

Simulate a mixture of two generalised lambda distributions.

fun.theo.bi.mv.gld

Calculates the theoretical mean, variance, skewness and kurtosis for m...

fun.theo.mv.gld

Find the theoretical first four moments of the generalised lambda dist...

fun.which.zero

Determine which values are zero.

fun.zero.omit

Returns a vector after removing all the zeros.

gl.check.lambda.alt

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

gl.check.lambda.alt1

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

GLDEX.package

This package fits RS and FMKL generalised lambda distributions using v...

GLDfunctions

The Generalised Lambda Distribution Family

hiddenfunctions

This is a collection of functions designed to implement the basic GLD ...

histsu

Histogram with exact number of bins specified by the user

is.inf

Returns a logical vecto, TRUE if the value is Inf or -Inf.

is.notinf

Returns a logical vector TRUE, if the value is not Inf or -Inf.

ks.gof

Kolmogorov-Smirnov test

Lmoments

L-moments

optimisationfunctions

This is a collection of functions used in the optimisation processes f...

pretty.su

An alternative to the normal pretty function in R.

qqplot.gld.bi

Do a quantile plot on the bimodal distribution fits.

qqplot.gld

Do a quantile plot on the univariate distribution fits.

QUnif

Quasi Randum Numbers via Halton Sequences

RSfittingandbasicfunctions

This is a collection of functions designed to find the initial values ...

skewnessandkurtosis

Compute skewness and kurtosis statistics

starship.adaptivegrid

Carry out the ``starship'' estimation method for the generalised lambd...

starship.obj

Objective function that is minimised in starship estimation method

starship

Carry out the ``starship'' estimation method for the generalised lambd...

t1lmoments

Trimmed L-moments

which.na

Determine Missing Values

The fitting algorithms considered in this package have two major objectives. One is to provide a smoothing device to fit distributions to data using the weight and unweighted discretised approach based on the bin width of the histogram. The other is to provide a definitive fit to the data set using the maximum likelihood and quantile matching estimation. Other methods such as moment matching, starship method, L moment matching are also provided. Diagnostics on goodness of fit can be done via qqplots, KS-resample tests and comparing mean, variance, skewness and kurtosis of the data with the fitted distribution. References include the following: Karvanen and Nuutinen (2008) "Characterizing the generalized lambda distribution by L-moments" <doi:10.1016/j.csda.2007.06.021>, King and MacGillivray (1999) "A starship method for fitting the generalised lambda distributions" <doi:10.1111/1467-842X.00089>, Su (2005) "A Discretized Approach to Flexibly Fit Generalized Lambda Distributions to Data" <doi:10.22237/jmasm/1130803560>, Su (2007) "Nmerical Maximum Log Likelihood Estimation for Generalized Lambda Distributions" <doi:10.1016/j.csda.2006.06.008>, Su (2007) "Fitting Single and Mixture of Generalized Lambda Distributions to Data via Discretized and Maximum Likelihood Methods: GLDEX in R" <doi:10.18637/jss.v021.i09>, Su (2009) "Confidence Intervals for Quantiles Using Generalized Lambda Distributions" <doi:10.1016/j.csda.2009.02.014>, Su (2010) "Chapter 14: Fitting GLDs and Mixture of GLDs to Data using Quantile Matching Method" <doi:10.1201/b10159>, Su (2010) "Chapter 15: Fitting GLD to data using GLDEX 1.0.4 in R" <doi:10.1201/b10159>, Su (2015) "Flexible Parametric Quantile Regression Model" <doi:10.1007/s11222-014-9457-1>, Su (2021) "Flexible parametric accelerated failure time model"<doi:10.1080/10543406.2021.1934854>.

  • Maintainer: Steve Su
  • License: GPL (>= 3)
  • Last published: 2023-08-21