sjags | R Documentation |
sjags(form, data, family = "gaussian", n.iter = 10000, n.chains = 4, n.burnin = 500, n.thin = 2)
form |
An object of class formula (y ~ x). Currently up to 4 explanatory (x) variables in binomial or poisson; 5 in gaussian. |
data |
An object of class data.frame to get the data from. |
family |
"binomial", "gaussian" or "poisson". |
... |
Arguments to pass to JAGS. |
Factors are supported. (2018June25)
Valeria Rolle
sjags(mpg ~ wt + cyl + vs,
family = "gaussian", data = mtcars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.