ugd {new.dist} | R Documentation |
Uniform-Geometric Distribution
Description
Density, distribution function, quantile function and random generation for the Uniform-Geometric distribution.
Usage
dugd(x, theta, log = FALSE)
pugd(q, theta, lower.tail = TRUE, log.p = FALSE)
qugd(p, theta, lower.tail = TRUE)
rugd(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 Uniform-Geometric distribution with shape parameter , has
density
where
and
Value
dugd
gives the density, pugd
gives the distribution
function, qugd
gives the quantile function and rugd
generates
random deviates.
References
Akdoğan, Y., Kuş, C., Asgharzadeh, A., Kınacı, İ., & Sharafi, F. (2016). Uniform-geometric distribution. Journal of Statistical Computation and Simulation, 86(9), 1754-1770.
Examples
library(new.dist)
dugd(1, theta=0.5)
pugd(1,theta=.5)
qugd(0.6,theta=.1)
rugd(10,theta=.1)