smoezipf: Survival function.

Description Usage Arguments Details Value Examples

View source: R/smoezipf.R

Description

Survival function for the MOEZipf with parameters α, β.

Usage

1
smoezipf(x, alpha, beta, show.plot = F)

Arguments

x

Vector of positive integer values.

alpha

Value of the α parameter (α > 1).

beta

Value of the β parameter (β > 0).

show.plot

logical; if TRUE shows the plot of the distibution (default = FALSE).

Details

The survival function at value x is computed as follows:

S(x) = \frac{β ζ(α, x + 1)}{ζ(α) - \bar{β}ζ(α, x + 1)}

Value

The survival probability value associated to each component in vector x.

Examples

1
2
smoezipf(1:10, 2.5, 1.3)
smoezipf(1:10, 2.5, 1.3, show.plot = TRUE)

moezipfR documentation built on May 2, 2019, 3:25 a.m.