Description Usage Arguments Value Examples
This function calculates the multinomial coefficient
(∑ n_j)! / ∏ n_j!.
where n_j's are the number of multiplicities in the multiset.
1 | multichoose(n, bigz = FALSE)
|
n |
a vector of group sizes |
bigz |
use gmp's Big Interger |
multinomial coefficient
1 2 | # (3+1+1)!/ (3! 1! 1!) = 20
multichoose(c(3,1,1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.