negbinpdf: Calculate Negative-binomial on vector of parameters

Description Usage Arguments Value

View source: R/poisson.R

Description

Computes the negative-binomial posterior predictive density from input parameter vectors corresponding to each possible run length for the current time point. Outputs a vector of probabilities for use in the accompanying poisson functions.

Usage

1
negbinpdf(x, a, b)

Arguments

x

the current data point

a

matrix of alpha params

b

matrix of beta params

Value

Matrix of negative binomial pdf values corresponding to each possible run length, for use in accompanying poisson probability functions.


ocp documentation built on May 2, 2019, 3:46 a.m.