Description Usage Arguments Details Value Author(s) Examples
convert R parameterizations to BUGS paramaterizations
1 | r2bugs.distributions(priors, direction = "r2bugs")
|
priors |
data.frame with columns distn = distribution name, parama, paramb using R default parameterizations |
direction, |
one of 'r2bugs' (default), 'bugs2r'.
Determines if function should convert from R to BUGS, or
vice-versa. The |
R and BUGS have different parameterizations for some distributions. This function transforms the distributions from R defaults to BUGS defaults. BUGS is an implementation of the BUGS language, and these transformations are expected to work for bugs.
priors dataframe using JAGS default parameterizations
David LeBauer, Ben Bolker
1 2 3 4 | priors <- data.frame(distn = c('weibull', 'lnorm', 'norm', 'gamma'),
parama = c(1, 1, 1, 1),
paramb = c(2, 2, 2, 2))
r2bugs.distributions(priors)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.