dlseries | R Documentation |
dlseries
gives the probability mass function, plseries
gives the cumulative mass
function, qlseries
the quantile function, rlseries
randome number generation
dlseries(x, beta, log = FALSE) plseries(q, beta, lower.tail = TRUE, log = FALSE) qlseries(p, beta, lower.tail = TRUE, log = FALSE) rlseries(n, beta)
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 |
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}.
A numeric vector of length equal to the input
Andy Rominger <ajrominger@gmail.com>
dlseries(1:10, 0.01)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.