nb.density {NB.MClust}R Documentation

dnb, ldnb Functions

Description

These functions allow you to compute (log-)density of generalized Negative Binomial distribution.

Usage

ldnb(x, theta, mu)

dnb(x, theta, mu)

Arguments

x

A positive numeric scalor or vector. Decimals and integers are both allowed.

theta

Value of dispersion.

mu

Value of mean.

Value

dnb

Density of generalized Negative Binomial

ldnb

Log-density of generalized Negative Binomial

Examples

ldnb(x=10.4,theta=3.2,mu=5)
dnb(x=10.4,theta=3.2,mu=5)

[Package NB.MClust version 1.1.1 Index]