Learn R Programming

moezipfR (version 1.0)

moezipfR.log.density: Log density function.

Description

Computes the log of the probability mass function of the MOEZipf distribution.

Usage

moezipfR.log.density(x, alpha, beta, show.plot = F)

Arguments

x
Vector of positive integer values.
alpha
Value of the $\alpha$ parameter ($\alpha > 1$).
beta
Value of the $\beta$ parameter ($\beta > 0$).
show.plot
logical; if TRUE shows the plot of the distibution (default = FALSE).

Value

The log of the probability associated to each value in vector x.

Examples

Run this code
moezipfR.log.density(1:10, 2.5, 1.3)
moezipfR.log.density(1:10, 2.5, 1.3, show.plot = TRUE)

Run the code above in your browser using DataLab