drawblock.dp: Draw block membership

Description Usage Arguments Details Value See Also

View source: R/dp.R

Description

Draw block membership in a Dirichlet process sampler

Usage

1
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


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