R/logdmultinom.R

## simplified version of dmultinom
logdmultinom <- 
function (x, size, prob) 
{
    lgamma(size + 1) + sum(x * log(prob) - lgamma(x + 1))
}

Try the detect package in your browser

Any scripts or data that you put into this service are public.

detect documentation built on May 2, 2019, 4:50 p.m.