multinom: Multinomial block assignment

Description Usage Arguments Details Value Examples

View source: R/blockmod.R

Description

A blockmod for Multinomial allocation

Usage

1

Arguments

gamma

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

kappa

the number of blocks

Details

This model posits that: for i=1:n

Z_i ~ Multinomial(omega)

where

omega ~ Dirichlet(gamma)

Value

a block model representing a Multinomial(gamma) distribution

Examples

1
2
3
4
## 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

SBMSplitMerge documentation built on July 1, 2020, 5:23 p.m.