multichoose: Multinomial coefficient

View source: R/polya.r

multichooseR Documentation

Multinomial coefficient

Description

Multinomial coefficients give the number of ways to partition a set of N objects into K containers, where each contains n_k elements.

{N \choose n_1, n_2, …, n_K} = \frac{N!}{n_1!n_2! \cdots n_K!}

Usage

multichoose(x, log = TRUE)

Arguments

x

Vector representing the number of times each outcome was observed

log

If TRUE, return the natural logarithm

Value

The multinomial coefficient


kylebittinger/polyafit documentation built on Jan. 11, 2023, 8:53 a.m.