sampler {SBMSplitMerge}R Documentation

top level sampler function

Description

top level sampler function

Usage

sampler(
  edges,
  sbmmod,
  nSteps = 1000,
  algorithm = "rj",
  sigma = 0.5,
  statusfreq,
  currsbm,
  ...
)

Arguments

edges

an edges object

sbmmod

an sbmmod model

nSteps

number of steps to run sampler

algorithm

choice of algorithm options are: "conjugate", "gibbs", "dp", "rj"

sigma

random walk parameter for theta

statusfreq

print the elapsed number of iterations every statusfreq iterations

currsbm

initial state for sbm object (optional - one is drawn from sbmmod if not supplied)

...

additional parameters to pass to step

Value

postz traces for block assignments z

postt traces for theta

postk traces for number of blocks kappa

postn traces for number of occupied blocks

nsteps number of iterations of chain

algorithm choice

Examples

## see vignette("Weibull-edges")

[Package SBMSplitMerge version 1.1.1 Index]