dsnb_stack_plot: The Stopped Negative Binomial P.M.F. Stack-Plot

Description Usage Arguments Value

View source: R/snb_dist.r

Description

The stacked plot of the probability mass function for the SNB showing the contributions from N (the top barrier) and R (the right barrier) by color.

Usage

1

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.


kaneplusplus/snb documentation built on May 20, 2019, 7:20 a.m.