blockmod: Block Model

Description Usage Arguments Details Value See Also

View source: R/blockmod.R

Description

create a blockmod object

Usage

1
blockmod(fixkappa, logd, dcond, r, ...)

Arguments

fixkappa

Logical - is kappa fixed or can it vary under the model?

logd

function(blocks) - log density for blocks

dcond

function(blocks, i) - conditional density for the block assignment i in blocks

r

function(n), sorted=FALSE - samples a blocks object from the model

...

parameters of the model for use in r, logd, dcond

Details

A block model is a probability model for a blocks object. This class creates a closure with three functions: - a random method for sampling block a structure from the model with n nodes; a - a log-density method for computing the log-density of a given block structure in a blocks object - a conditional density function that takes a blocks object and a node i

Value

a blockmod object

See Also

multinom dma crp blocks


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