run_nimble_model.Rd
Run Nimble Model in Parallel Function will run a Nimble model for 'nc' indepdendent chains
run_nimble_model(
code,
data,
constants = NULL,
inits,
monitors = NULL,
ncores = NULL,
ni = 10000,
nb = 100,
nt = 1,
nc = 1,
aI = 200,
ntries = 5,
calculate = FALSE,
block.name = "alpha+b",
block.samp.type = "AF_slice",
parallel = TRUE
)
nimble model code
data as a list
constants as list
list of initial values
optional Character vector of parameters to monitor.
maximum number of cores to employ. Actual number used is the minimum of nc and ncores
number iterations to run
number of burn-in iterations to discard (I think it's PRE-THINNING burnin discard...)
thinning rate (every Nth iteration will be saved)
number of chains to run (in parallel)
adapt interval, used in nimble::addSamplers
optional If using parameter block sampler, specify the maximum number of tries
logical if TRUE will calculate the model logprob. Used as argument 'calculate' in function nimble::nimbleModel()
optional one of c("alpha+b", "all"). If "alpha+b" will block each alpha and b across all T. If "all" will block all alpha and b for each Ts.
optional one of c("AF_slice", "RW_block").
logical if TRUE will run chains in parallel (using foreach).