negbinpdf {ocp}R Documentation

Calculate Negative-binomial on vector of parameters

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

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.


[Package ocp version 0.1.1 Index]