Description Usage Arguments Details Value Author(s)
Use JAGS to sample from a distribution stated using R parameterization
1 2 | sample.dist.BUGS(prior = data.frame(distn = "norm", parama = 0, paramb = 1),
n.iter = 1e+05, n = NULL)
|
prior |
dataframe with distribution name and parameters |
n.iter |
number of mcmc samples |
n |
number of samples returned, if NULL (default), output will have n.iter/4 samples |
Takes a distribution with R parameterization, converts it to a BUGS parameterization, and then samples from the distribution using JAGS
vector of samples
David LeBauer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.