powered by
Enumerate the multinomial sample space
sspace_multinom(d, n)
A vector enumerating the sample space, to be converted to a matrix with d columns and choose(n + d - 1, d - 1) rows
The dimension
The sample size
matrix(sspace_multinom(3, 5), ncol = 3, byrow = TRUE)
Run the code above in your browser using DataLab