mynbin: Negative Binomial Probability

View source: R/NegBin.R

mynbinR Documentation

Negative Binomial Probability

Description

Negative Binomial Probability

Usage

mynbin(y, r, p)

Arguments

y

y variable as an integer for the number of failures

r

r variable as an integer for the number of successes

p

p as the probability of a success

Value

Returns the negative binomial probability that there are y number of failures before the rth success.

Examples

mynbin(10,3,0.4)

kennysoup/mypackage documentation built on May 2, 2022, 12:14 a.m.