logseries: Logseries distribution

dlseriesR Documentation

Logseries distribution

Description

dlseries gives the probability mass function, plseries gives the cumulative mass function, qlseries the quantile function, rlseries randome number generation

Usage

dlseries(x, beta, log = FALSE)

plseries(q, beta, lower.tail = TRUE, log = FALSE)

qlseries(p, beta, lower.tail = TRUE, log = FALSE)

rlseries(n, beta)

Arguments

x

vector of integers for which to return the probability

beta

parameter of the log series, see Details

log

logical, should the log probability be used

q

vector of integers for which to return the cumulative probability

lower.tail

logical, should the lower tail be used

p

vector of probabilities for which to return the quantile

n

number of random replicates

Details

These functions assume infinite support of the logseries from [1, Inf). An alternate parameterization is used to allow a larger range (i.e. the positive number line) of the parameter beta: \frac{1}{log(1/(1-e^{-β}))} * \frac{e^{-β x}}{x}.

Value

A numeric vector of length equal to the input

Author(s)

Andy Rominger <ajrominger@gmail.com>

Examples


dlseries(1:10, 0.01)


ajrominger/pika documentation built on Nov. 13, 2022, 8:22 a.m.