Learn R Programming

NB.MClust (version 1.1.1)

nb.density: 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

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

Run the code above in your browser using DataLab