bugs.rdist.Rd
Sample from an R distribution using JAGS
bugs.rdist(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 samples, output will have n.iter/4 samples |
n |
vector of samples
Takes a distribution with R parameterization, converts it to a BUGS parameterization, and then samples from the distribution using JAGS