Yules {VGAM} | R Documentation |
Density, distribution function, quantile function and random generation for the Yule-Simon distribution.
dyules(x, rho, log=FALSE) pyules(q, rho) ryules(n, rho)
x, q |
Vector of quantiles. For the density, it should be a vector with
positive integer values in order for the probabilities to be positive.
|
n |
number of observations. A single positive integer. |
rho |
See yulesimon .
|
log |
logical; if TRUE, the logarithm is returned. |
See yulesimon
, the VGAM family function
for estimating the parameter,
for the formula of the probability density function and other details.
dyules
gives the density,
pyules
gives the distribution function, and
ryules
generates random deviates.
T. W. Yee
dyules(1:20, 2.1) ryules(20, 2.1) round(1000 * dyules(1:8, 2)) table(ryules(1000, 2)) ## Not run: x = 0:6 plot(x, dyules(x, rho=2.2), type="h", las=1, col="blue") ## End(Not run)