dsnb_plot: The Stopped Negative Binomial P.M.F. Plot

Description Usage Arguments Value Examples

View source: R/snb.r

Description

The plot of the probability mass function for the Stopped Negative Binomial.

Usage

1
dsnb_plot(p, s, t, x, offset)

Arguments

p

the probability of a success on each coin flip.

s

the top barrier for the snb process.

t

the right barrier for the snb process.

x

the range of the distribution (defaults to min(s,t):(t+s-1)).

offset

an offset on the domain of the distribution. This is used when getting the conditional distribution where the domain does not start at 1.

Value

a plot of the probability mass function.

Examples

1
dsnb_plot(p=0.2, s=7, t=11)

kaneplusplus/curtail documentation built on May 24, 2019, 2:04 a.m.