Description Usage Arguments Value See Also Examples
reversible jump Markov chain Monte Carlo split-merge sampler
1 | sampler.rj(currsbm, edges, sbmmod, sigma, rho = 10)
|
currsbm |
the current state of the sampler |
edges |
an |
sbmmod |
an |
sigma |
random walk parameter for |
rho |
propensity to add a block |
next state of currsbm
object
For full algorithm details see http://doi.org/10.17635/lancaster/thesis/296
1 2 3 4 | model <- sbmmod(dma(1,10), param_nbin(1,1,4,4,0.5,0.5,0.5,0.5), edges_nbin())
trueSBM <- model$r(100)
Edges <- redges(trueSBM, model$edge)
rj_out <- sampler(Edges, model, 10, "rj", sigma=0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.