Learn R Programming

ADtools (version 0.5.4)

dgamma0: The density of the gamma distribution

Description

The density of the gamma distribution

Usage

dgamma0(x, shape, rate, scale = 1/rate, log = FALSE)

Arguments

x

vector or matrix of quantiles. If x is a matrix, each row is taken to be a quantile.

shape

positive number; the shape parameter.

rate

positive number; the rate parameter.

scale

positive number; the scale parameter.

log

logical; if TRUE, returns the log value.

Examples

Run this code
# NOT RUN {
n <- 10
x <- rgamma0(n, shape = 1, scale = 5)
dgamma0(x, shape = 1, scale = 5)

# }

Run the code above in your browser using DataLab