sampler.gibbs: Gibbs sampling for node assignments

Description Usage Arguments Value Note Examples

View source: R/sampler.R

Description

Gibbs sampling for node assignments

Usage

1

Arguments

currsbm

the current state of the sampler

edges

an edges object

sbmmod

an sbmmod model

sigma

random walk parameter for theta

Value

next state of currsbm object

Note

This requires a block model with a fixed kappa

Examples

1
2
3
4
5
model <- sbmmod(multinom(1, 3), param_gamma(1,1,1,1), edges_pois())
trueSBM <- model$r(10)
Edges <- redges(trueSBM, model$edge)
gibbs_out <- sampler(Edges, model, algorithm="gibbs", 10, sigma=0.1)
eval_plots(gibbs_out)

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