crp {SBMSplitMerge} | R Documentation |
Chinese Restaurant Process
Description
A blockmod
for the Chinese restaurant process (CRP)
Usage
crp(gamma)
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
## simulate from a CRP(5) prior
m <- crp(5)
print(m)
m$r(10)
[Package SBMSplitMerge version 1.1.1 Index]