dLd1 {new.dist} | R Documentation |
Discrete Lindley Distribution
Description
Density, distribution function, quantile function and random generation for the discrete Lindley distribution.
Usage
ddLd1(x, theta, log = FALSE)
pdLd1(q, theta, lower.tail = TRUE, log.p = FALSE)
qdLd1(p, theta, lower.tail = TRUE)
rdLd1(n, theta)
Arguments
x , q |
vector of quantiles. |
theta |
a parameter. |
log , log.p |
logical; if TRUE, probabilities p are given as log(p). |
lower.tail |
logical; if TRUE (default), probabilities are
|
p |
vector of probabilities. |
n |
number of observations. If |
Details
The Discrete Lindley distribution with a parameter , has density
where
Value
ddLd1
gives the density, pdLd1
gives the distribution
function, qdLd1
gives the quantile function and rdLd1
generates
random deviates.
References
Gómez-Déniz, E. ve Calderín-Ojeda, E., 2011, The discrete Lindley distribution: properties and applications.Journal of statistical computation and simulation, 81 (11), 1405-1416.
Examples
library(new.dist)
ddLd1(1,theta=2)
pdLd1(2,theta=1)
qdLd1(.993,theta=2)
rdLd1(10,theta=1)