Learn R Programming

VGAM (version 0.9-2)

Lindley: The Lindley Distribution

Description

Density, cumulative distribution function, and random generation for the Lindley distribution.

Usage

dlind(x, theta, log = FALSE)
plind(q, theta)
rlind(n, theta)

Arguments

x, q
vector of quantiles.
n
number of observations.
log
Logical. If log = TRUE then the logarithm of the density is returned.
theta
positive parameter.

Value

  • dlind gives the density, plind gives the cumulative distribution function, and rlind generates random deviates.

Details

See lindley for details.

See Also

lindley.

Examples

Run this code
theta <- exp(-1); x <- seq(0.0, 17, length = 700)
dlind(0:10, theta)
plot(x, dlind(x, theta), type = "l", las = 1, col = "blue",
     main = "dlind(x, theta = exp(-1))")
abline(h = 1, col = "grey", lty = "dashed")

Run the code above in your browser using DataLab