powered by
A blockmod for Multinomial allocation
blockmod
multinom(gamma, kappa)
parameter for Dirichlet component \(Dirichlet(gamma, ..., gamma)\)
the number of blocks
a block model representing a Multinomial(gamma) distribution
Multinomial(gamma)
This model posits that: for i=1:n $$Z_i ~ Multinomial(omega)$$ where $$omega ~ Dirichlet(gamma)$$
i=1:n
# NOT RUN { ## A fixed number of blocks with multinomial assignment of nodes m <- multinom(1, 4) print(m) m$r(10) ## simulate a blocks object with 10 nodes # }
Run the code above in your browser using DataLab