Learn R Programming

SpatialEpi (version 1.2.3)

ldmultinom: log multinomial Density

Description

Compute log of density of multinomial

Usage

ldmultinom(x, prob)

Arguments

x

vector of multinomial counts

prob

vector of bin probabilities

Value

log of density of multinomial

Examples

Run this code
# NOT RUN {
p <- rep(0.2, 5)
x <- rmultinom(1, 10, p)
dmultinom(x, prob=p, log=TRUE)
ldmultinom(x, p)
# }

Run the code above in your browser using DataLab