Description Usage Arguments Value Examples
Density, distribution function, quantile function and random generation for the
Conway-Maxwell-Poisson distribution with parameter mu
and nu
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | dcomp(
x,
mu,
nu = 1,
lambda,
log.p = FALSE,
lambdalb = 1e-10,
lambdaub = 1000,
maxlambdaiter = 1000,
tol = 1e-06,
summax
)
pcomp(
q,
mu,
nu = 1,
lambda,
lower.tail = TRUE,
log.p = FALSE,
lambdalb = 1e-10,
lambdaub = 1000,
maxlambdaiter = 1000,
tol = 1e-06,
summax
)
qcomp(
p,
mu,
nu = 1,
lambda,
lower.tail = TRUE,
log.p = FALSE,
lambdalb = 1e-10,
lambdaub = 1000,
maxlambdaiter = 1000,
tol = 1e-06,
summax
)
rcomp(
n,
mu,
nu = 1,
lambda,
lambdalb = 1e-10,
lambdaub = 1000,
maxlambdaiter = 1000,
tol = 1e-06,
summax
)
|
x, q |
vector of quantiles |
mu, nu |
mean and dispersion parameters. Must be strictly positive. |
lambda |
an alternative way than mu to parametrized the distribution. Must be strictly positive |
log.p |
logical; if |
lambdalb, lambdaub |
numeric: the lower and upper end points for the interval to be searched for lambda(s). |
maxlambdaiter |
numeric: the maximum number of iterations allowed to solve for lambda(s). |
tol |
numeric: the convergence threshold. A lambda is said to satisfy the mean constraint if the absolute difference between the calculated mean and mu is less than tol. |
summax |
numeric; maximum number of terms to be considered in the truncated sum. |
lower.tail |
logical; if |
p |
vector of probabilities |
n |
number of observations. If |
dcomp
gives the density, pcomp
gives the distribution function, qcomp
gives the quantile function, and rcomp
generates random deviates.
Invalid arguments will result in return value NaN
, with a warning.
The length of the results is determined by n
for rcomp
, and is the maximum
of the lengths of the numerical arguments for the other functions.
The numerical arguments other than n
are recycled to the length of the results.
Only the first argument of the logical arguments are used.
1 2 3 4 5 |
[1] 0.11374731 0.27609781 0.29170831 0.18946331 0.08713145 0.03065722
[1] 0.9888054
[1] 0 1 1 1 2 2 3 3 4
[1] 1 1 1 2 1 1 5 2 2 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.