Learn R Programming

lestat (version 1.9)

gammadistribution: Create a Gamma Distribution

Description

Create a Gamma distribution.

Usage

gammadistribution(alpha = 1, beta = 1)

Arguments

alpha

The first parameter of the Gamma distribution: The "shape" parameter.

beta

The second parameter of the Gamma distribution: The "rate" parameter.

Value

A Gamma probability distribution.

Details

The density of the distribution is proportional to $$f(x)=x^{\alpha-1}\exp(-\beta x)$$

See Also

expgamma

Examples

Run this code
# NOT RUN {
dist <- gammadistribution(4, 2)
plot(dist)
# }

Run the code above in your browser using DataLab