Learn R Programming

SBMSplitMerge (version 1.1.1)

mergeavg: Merge blocks

Description

Merge-move using an average to merge parameters

Usage

mergeavg(sbm, edges, sbmmod, ...)

Arguments

sbm

the current state of the sampler

edges

an edges object

sbmmod

an sbmmod model

...

additional parameter to 'accept'

Value

an updated sbm object

Details

the blocks are chosen at random, the nodes reassigned to the block with the smallest index, then the parameters are combined using the average on the transformed scale