drawblock.dp {SBMSplitMerge}R Documentation

Draw block membership

Description

Draw block membership in a Dirichlet process sampler

Usage

drawblock.dp(i, currsbm, edges, sbmmod)

Arguments

i

node to update

currsbm

current sbm object

edges

an edges object

sbmmod

an sbmmod object

Details

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.

Value

updated sbm object

See Also

For full algorithm details see http://doi.org/10.17635/lancaster/thesis/296


[Package SBMSplitMerge version 1.1.1 Index]