snb: The Stopped Negative Binomial Distribution

Description Usage Arguments Value

Description

Density, distribution function, quantile function and random generation for the stopped negative binomial distribution with parameters, 'prob', 's', and 't'.

Usage

1
2
3
4
dsnb(x, prob, s, t)
psnb(q, prob, s, t)
qsnb(p, prob, s, t)
rsnb(n, prob, s, t)

Arguments

x

vector of quantiles.

prob

probility of success on each coin flip.

s

the ceiling for the snb process

t

the length of the the process can run for.

q

vector of quantiles.

p

vector of probabilities.

n

number of observations.

Value

'dsnb' give the density, 'psnb' give the distribution function function, 'qsnb' gives the quantile function, 'rsnb' generates random deviates.


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