Last chance! 50% off unlimited learning
Sale ends in
Quantile function for the sum of random variable with negative binomial distributions.
qSnbinom(
p = stop("At least one probability must be provided"),
size = stop("size parameter is mandatory"),
prob = NULL,
mu = NULL,
lower.tail = TRUE,
log.p = FALSE,
tol = 1e-06
)
vector of probabilities.
target for number of successful trials, or dispersion parameter (the shape parameter of the gamma mixing distribution). Must be strictly positive, need not be integer.
probability of success in each trial. 0 < prob <= 1.
alternative parametrization via mean.
logical; if TRUE (default), probabilities are P[X <= x], otherwise, P[X > x].
logical; if TRUE, probabilities p are given as log(p).
Tolerance for recurrence
qSnbinom returns quantile function
qSnbinom returns the quantile function for the sum of random variable with negative binomial distributions
Other Distribution of sum of random variable with negative binomial distributions:
dSnbinom()
,
pSnbinom()
,
rSnbinom()
# NOT RUN {
alpha <- c(2.1, 2.05, 2)
mu <- c(10, 30, 20)
q <- qSnbinom(p=0.1, size=alpha, mu=mu, lower.tail = TRUE)
# }
Run the code above in your browser using DataLab