Learn R Programming

hwep (version 2.0.3)

ddirmult: PMF of Dirichlet-multinomial distribution

Description

PMF of Dirichlet-multinomial distribution

Usage

ddirmult(x, alpha, lg = FALSE)

Arguments

x

The vector of counts.

alpha

The vector of concentration parameters.

lg

A logical. Should we log the density (TRUE) or not (FALSE)?

Author

David Gerard

Examples

Run this code
ddirmult(c(1, 2, 3), c(1, 1, 1))
ddirmult(c(2, 2, 2), c(1, 1, 1))

Run the code above in your browser using DataLab