qcnb {cnbdistr}R Documentation

Quantile Function of Conditional Negative Binomial

Description

Quantile function of the conditional distribution of X given X + Y = D, where X ~ NB(r1, p1) and Y ~ NB(r2, p2) are drawn from two negative binomials, independent of each other, and assuming p1/p2 = lambda.

Usage

qcnb(p, D, r1, r2, lambda)

Arguments

p

a nonempty vector of probabilities (0 <= p[i] <= 1 for all i).

D

a positive integer.

r1

a positive value.

r2

a positive value.

lambda

a positive value.

Details

Need to specify full list of arguments, as default values have not been set.

Value

A vector x such that x[i] = Inf{x in 0:D, p[i] <= Pr(X <= x | X + Y = D)} for all i.

Author(s)

Xiaotian Zhu, xiaotian.zhu.psualum@gmail.com

See Also

dcnb, pcnb, rcnb.

Examples

qcnb(0.035193, 2000, 120, 90, 0.994)
qcnb(seq(0, 1, 0.05), 7, 2, 0.4, 0.6)


[Package cnbdistr version 1.0.1 Index]