Learn R Programming

lmomco (version 2.5.3)

lmomgdd: L-moments of the Gamma Difference Distribution

Description

This function estimates the L-moments of the Gamma Difference distribution (Klar, 2015) given the parameters (\(\alpha_1 > 0\), \(\beta_1 > 0\), \(\alpha_2 > 0\), \(\beta_2 > 0\)) from pargdd. The L-moments in terms of the parameters higher than the mean are complex and numerical methods are required. The mean is

$$\lambda_1 = \frac{\alpha_1}{\beta_1} - \frac{\alpha_2}{\beta_2} \mbox{.}$$

The product moments, however, have simple expressions, the variance and skewness, respectively are

$$\sigma^2 = \frac{\alpha_1}{\beta_2^2} + \frac{\alpha_2}{\beta_2^2}\mbox{,}$$

and

$$\gamma = \frac{2\bigl(\alpha_1{\beta_2^3} + \alpha_2{\beta_2^2}\bigr)} {\bigl(\alpha_2{\beta_1^2} + \alpha_2{\beta_1^2}\bigr)^{3/2}}\mbox{.}$$

Usage

lmomgdd(para, nmom=6, paracheck=TRUE, silent=TRUE, ...)

Value

An R

list is returned.

lambdas

Vector of the L-moments. First element is \(\lambda_1\), second element is \(\lambda_2\), and so on.

ratios

Vector of the L-moment ratios. Second element is \(\tau\), third element is \(\tau_3\) and so on.

trim

Level of symmetrical trimming used in the computation, which is 0.

leftrim

Level of left-tail trimming used in the computation, which is NULL.

rightrim

Level of right-tail trimming used in the computation, which is NULL.

source

An attribute identifying the computational source of the L-moments: “lmomgdd”.

Arguments

para

The parameters of the distribution.

nmom

The number of L-moment to numerically compute for the distribution.

paracheck

A logical controlling whether the parameters are checked for validity.

silent

The argument of silent for the try() operation wrapped on integrate().

...

Additional argument to pass.

Author

W.H. Asquith

See Also

pargdd, cdfgdd, pdfgdd, quagdd

Examples

Run this code
#

Run the code above in your browser using DataLab