dcnb: PMF of Conditional Negative Binomial

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Probability mass 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

1
dcnb(x, D, r1, r2, lambda)

Arguments

x

a nonempty vector of non-negative integer(s) <= D.

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 providing values of Pr(X = x | X + Y = D) for each element in x.

Author(s)

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

See Also

pcnb, qcnb, rcnb.

Examples

1
2
dcnb(980, 2000, 120, 90, 0.994)
dcnb(0:7, 7, 2, 0.4, 0.6)

cnbdistr documentation built on May 2, 2019, 4:26 a.m.