crp: Chinese Restaurant Process

Description Usage Arguments Details Value Examples

View source: R/blockmod.R

Description

A blockmod for the Chinese restaurant process (CRP)

Usage

1

Arguments

gamma

concentration parameter

Details

The CRP posits that each node arrives in turn. The first node joins the first block. Each subsequent node starts a new block with probability 'gamma' or joins an existing block proportional to the block size.

Value

a block model representing a CRP(gamma) distribution

Examples

1
2
3
4
## simulate from a CRP(5) prior
m <- crp(5)
print(m)
m$r(10)

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