crisp_nimble: Nimble CRISP

View source: R/crisp_nimble.R

crisp_nimbleR Documentation

Nimble CRISP

Description

Note by MF: Complile and Run In Sequence or Parallel following template from https://r-nimble.org/nimbleExamples/parallelizing_NIMBLE.html "\[E]nsure that all NIMBLE execution, including model building, is conducted inside the parallelized code. This ensures that all models and algorithms are independent objects that don't interfere with each other."

Usage

crisp_nimble(
  model_code,
  constants,
  data,
  inits,
  monitors = c(),
  nburnin = 0,
  thin = 1,
  niter = 1e+05,
  nchains = 4,
  nclusters = 4
)

Arguments

model_code

either a string containing the code of the model or the variable in which the code is stored

constants

ALL the constants

data

the dataset to be passed to 'nimble::nimbleModel()'

inits

inits parameter to be passed to 'nimble::nimbleModel()'

monitors

user modified monitors; leave empty for default (?)

nburnin

...

thin

...

niter

number of iterations

nchains

number of chains

nclusters

number of clusters

Value

mcmc.list


michael-franke/aida-package documentation built on Feb. 19, 2023, 11:51 p.m.