Description Usage Arguments Details Value See Also
Draw block membership in a Dirichlet process sampler
1 | drawblock.dp(i, currsbm, edges, sbmmod)
|
i |
node to update |
currsbm |
current |
edges |
an |
sbmmod |
an |
sample a new block assignment for i under a Dirichlet process.
Care needs to be taken with singleton blocks to update the parameter model in currsbm
.
updated sbm
object
For full algorithm details see http://doi.org/10.17635/lancaster/thesis/296
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.