Yules {VGAM}R Documentation

Yule-Simon Distribution

Description

Density, distribution function, quantile function and random generation for the Yule-Simon distribution.

Usage

dyules(x, rho, log=FALSE)
pyules(q, rho)
ryules(n, rho)

Arguments

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.

Details

See yulesimon, the VGAM family function for estimating the parameter, for the formula of the probability density function and other details.

Value

dyules gives the density, pyules gives the distribution function, and ryules generates random deviates.

Author(s)

T. W. Yee

See Also

yulesimon.

Examples

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)

[Package VGAM version 0.7-7 Index]