runJAGS: Call JAGS to get the posterior draws.

Description Usage Arguments Value

Description

This function calls jags to get the posterior draws.

Usage

1
runJAGS(bdat, calcInits, sims = 10000, numChains = 3, details = FALSE)

Arguments

bdat

a list of containing the data necessary for the JAGS model

calcInits

a list or function that generates a list of intial values for the JAGS model

sims

the number of MCMC simulations used for each chain after a burnin of 10 percent of sims

numChains

number of MCMC chains to use

details

if details=TRUE, more detailed results are returned.

Value

If details=FALSE, a list of MCMC chains for the monitored model parameters is returned. If details=TRUE, a model object generated by the jags function is returned (this contains the simulations along with additional information)


eeholmes/DM documentation built on May 26, 2019, 3:36 p.m.