ldmultinom: log multinomial Density

Description Usage Arguments Value Author(s) Examples

Description

Compute log of density of multinomial

Usage

1
ldmultinom(x, prob)

Arguments

x

vector of multinomial counts

prob

vector of bin probabilities

Value

log of density of multinomial

Author(s)

Albert Y. Kim

Examples

1
2
3
4
p <- rep(0.2, 5)
x <- rmultinom(1, 10, p)
dmultinom(x, prob=p, log=TRUE)
ldmultinom(x, p)

SpatialEpi documentation built on May 1, 2019, 7:32 p.m.