Learn R Programming

SBMSplitMerge (version 1.1.1)

drawblock.gibbs: Gibbs-like reassignment of nodes to the current set of blocks

Description

Reassign node `i` to the current set of blocks given the current number of blocks and the other block assignments

Usage

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

Arguments

i

the node to reassign

currsbm

an sbm object

edges

an edges object

sbmmod

an sbmmod object

Value

updated sbm object with new block assignment for i