powered by
nimbleModel
readBUGSmodel
Simply keeps model code as an R call object, the form needed by nimbleModel and optionally usable by readBUGSmodel.
nimbleCode(code)
expression providing the code for the model
Daniel Turek
It is equivalent to use the R function quote. nimbleCode is simply provided as a more readable alternative for NIMBLE users not familiar with quote.
quote
nimbleCode
code <- nimbleCode({ x ~ dnorm(mu, sd = 1) mu ~ dnorm(0, sd = prior_sd) })
Run the code above in your browser using DataLab