Skip to contents

Equations 3.1 to 3.3 of Bilder & Loughin (2025).

Usage

morie_multinomial_pmf(counts, probs, product = FALSE)

Arguments

counts

Category counts (vector, or matrix for tables).

probs

Probabilities (same shape; conditional rows for the product-multinomial form).

product

If TRUE use the product-multinomial row-wise form.

Value

Numeric probability.

Examples

V <- c(1, 2, 3, 4, 5, 6, 7, 8)
morie_multinomial_pmf(V, V)
#> [1] 3.85137e-05