sampler: top level sampler function

Description Usage Arguments Value Examples

View source: R/sampler.R

Description

top level sampler function

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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

1
## see vignette("Weibull-edges")

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