rglg function

Random number generation for a generalized log-gamma distribution

Random number generation for a generalized log-gamma distribution

rglg is used to generate random numbers for a generalized log-gamma distribution.

rglg(n, location, scale, shape)

Arguments

  • n: numeric, size of the random sample.
  • 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.

Returns

A vector of size n with the generalized log-gamma random values.

Examples

u <- rglg(100, location = 0, scale = 1, shape = -1)

References

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

Author(s)

Carlos Alberto Cardozo Delgado cardozorpackages@gmail.com

  • Maintainer: Carlos Alberto Cardozo Delgado
  • License: GPL-3
  • Last published: 2022-09-04

Useful links