Description Usage Arguments Value Note Examples
Gibbs sampling for node assignments
1 | sampler.gibbs(currsbm, edges, sbmmod, sigma)
|
currsbm |
the current state of the sampler |
edges |
an |
sbmmod |
an |
sigma |
random walk parameter for theta |
next state of currsbm
object
This requires a block model with a fixed kappa
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.