View source: R/jags_examples.R
jags_examples | R Documentation |
jags_examples()
gives an example of code in JAGS
for model specification, and code that could be passed to run.jags
function.
jags_examples(example, runme = T)
example |
Character string. Prints example models using |
runme |
Logical. If |
example
logistic regression for a Bernoulli random variable. Linearity on eta, with a and b normal prior distributions.
logarithmic regression for a Poisson random variable.
runme
specification of initial values and distributions for the JAGS
model, as well as run.jags
example code.
run.jags
jags_examples("model1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.