Learn R Programming

SBMSplitMerge (version 1.1.1)

multinom: Multinomial block assignment

Description

A blockmod for Multinomial allocation

Usage

multinom(gamma, kappa)

Arguments

gamma

parameter for Dirichlet component \(Dirichlet(gamma, ..., gamma)\)

kappa

the number of blocks

Value

a block model representing a Multinomial(gamma) distribution

Details

This model posits that: for i=1:n $$Z_i ~ Multinomial(omega)$$ where $$omega ~ Dirichlet(gamma)$$

Examples

Run this code
# 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