Description Usage Arguments Details Author(s) Examples
Simply keeps model code as an R call object, the form
needed by nimbleModel and optionally usable by
readBUGSmodel
1 | nimbleCode(code)
|
code |
expression providing the code for the model |
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.
Daniel Turek
1 2 3 4 | code <- nimbleCode({
x ~ dnorm(mu, sd = 1)
mu ~ dnorm(0, sd = prior_sd)
})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.