Usage
ZIP2(mu.link = "log", sigma.link = "logit")
dZIP2(y, mu = 5, sigma = 0.1, log = FALSE)
pZIP2(q, mu = 5, sigma = 0.1, lower.tail = TRUE, log.p = FALSE)
qZIP2(p, mu = 5, sigma = 0.1, lower.tail = TRUE, log.p = FALSE)
rZIP2(n, mu = 5, sigma = 0.1)
Arguments
mu.link
defines the mu.link
, with "log" link as the default for the mu
parameter
sigma.link
defines the sigma.link
, with "logit" link as the default for the sigma parameter which in this case is the probability at zero.
Other links are "probit" and "cloglog"'(complementary log-log)
y
vector of (non-negative integer) quantiles
mu
vector of positive means
sigma
vector of probabilities at zero
n
number of random values to return
log, log.p
logical; if TRUE, probabilities p are given as log(p)
lower.tail
logical; if TRUE (default), probabilities are P[X <= x],="" otherwise,="" p[x=""> x]=>