Zeta {VGAM}R Documentation

The Zeta Distribution

Description

Density for the zeta distribution.

Usage

dzeta(x, p)

Arguments

x Numerical vector/matrix to evaluate the density.
p The parameter p. This must be greater than 1.

Details

The density function of the zeta distribution is given by

y^(-p) / zeta(p)

where p>1, y=1,2,..., and zeta is Riemann's zeta function.

Value

Returns the density evaluated at x.

Warning

This function has not been fully tested.

Note

The VGAM family function zetaff estimates the parameter p.

Author(s)

T. W. Yee

References

Johnson N. L., Kotz S., and Balakrishnan N. (1993) Univariate Discrete Distributions, 2nd ed. New York: Wiley.

See Also

zeta, zetaff.

Examples

dzeta(1:20, p=2)
## Not run: 
plot(1:6, dzeta(1:6, p=4), type="h", las=1, ylab="Probability",
     main="zeta probability function; black: p = 4; blue: p = 2")
points(0.10+1:6, dzeta(1:6, p=2), type="h", col="blue")
## End(Not run)

[Package VGAM version 0.7-7 Index]