powered by
top level sampler function
sampler( edges, sbmmod, nSteps = 1000, algorithm = "rj", sigma = 0.5, statusfreq, currsbm, ... )
an edges object
edges
an sbmmod model
sbmmod
number of steps to run sampler
choice of algorithm options are: "conjugate", "gibbs", "dp", "rj"
"conjugate", "gibbs", "dp", "rj"
random walk parameter for theta
theta
print the elapsed number of iterations every statusfreq iterations
statusfreq
initial state for sbm object (optional - one is drawn from sbmmod if not supplied)
sbm
additional parameters to pass to step
postz traces for block assignments z
postz
z
postt traces for theta
postt
postk traces for number of blocks kappa
postk
kappa
postn traces for number of occupied blocks
postn
nsteps number of iterations of chain
nsteps
algorithm choice
algorithm
# NOT RUN { ## see vignette("Weibull-edges") # }
Run the code above in your browser using DataLab