dsnbc_stack: The "Stacked" Compound Negative Binomial Density Function

Description Usage Arguments Value

View source: R/snb_dist.r

Description

This function returns the "stacked" density function showing the contribution from each of the end points to the total mass.

Usage

1
2
dsnbc_stack(d, s, t, shape1 = 0.5, shape2 = 0.5, x = min(s, t):(t + s -
  1))

Arguments

d

the data, a vector of 0 and 1 values.

s

the top barrier for the snb process.

t

the right barrier for the snb process.

shape1

the value of the first shape parameter on the prior

shape2

the value of the second shape parameter on the prior

x

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

Value

the "stacked" density.


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