gammadistribution: The Gamma Distribution

density_gammaR Documentation

The Gamma Distribution

Description

Density, (cumulative) distribution function and random generation for Gamma distribution.

Usage

density_gamma(shape, scale, x)

cdf_gamma(shape, scale, x)

random_gamma(shape, scale, n)

Arguments

shape, scale

shape and scale parameters.

x

vector of quantiles.

n

number of observations.

Value

The functions density_XXX and cdf_t return numeric vectors of same length as x. The functions random_XXX return random number (numeric vectors) of length n.

Examples


density_gamma(shape = 1, scale = 2, x = 1:10)
cdf_gamma(shape = 1, scale = 2, x = 1:10)
random_gamma(shape = 1, scale = 2, n = 10)


rjd3toolkit documentation built on Jan. 14, 2026, 1:06 a.m.