Learn R Programming

sglg (version 0.2.2)

qglg: Quantile function for a generalized log-gamma distribution

Description

qglg is used to calculate the quantile function of a generalized log-gamma variable at x.

Usage

qglg(x, location, scale, shape)

Value

A vector with the same size of x with the quantile values of a generalized log-gamma distribution.

Arguments

x

numeric, a vector with values between 0 and 1.

location

numeric, represents the location parameter of a generalized log-gamma distribution. Default value is 0.

scale

numeric, represents the scale parameter of a generalized log-gamma distribution. Default value is 1.

shape

numeric, represents the shape parameter of a generalized log-gamma distribution. Default value is 1.

Author

Carlos Alberto Cardozo Delgado <cardozorpackages@gmail.com>

References

Carlos Alberto Cardozo Delgado, Semi-parametric generalized log-gamma regression models. Ph. D. thesis. Sao Paulo University.

Examples

Run this code
# Calculating the quartiles of a glg(0,1,-1) distribution
x <- c(0.25, 0.5, 0.75)
qglg(x, location = 0, scale = 1, shape = -1)

Run the code above in your browser using DataLab