fit.jags: Fit model using JAGS

Description Usage Arguments Value Author(s) See Also

View source: R/hmob_model_funcs.R

Description

This function fits

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
fit.jags(
  jags.data,
  jags.model,
  params,
  n.chain = 2,
  n.burn = 1000,
  n.samp = 1000,
  n.thin = 1,
  DIC = FALSE,
  parallel = FALSE
)

Arguments

jags.data

a list of data objects

jags.model

character string giving the model specification in JAGS/BUGS syntax

params

vector of parameters to monitor

n.chain

number of MCMC sampling chains

n.burn

number of iterations to discard before sampling of chains begins (burn in)

n.samp

number of iterations to sample each chain

n.thin

interval to thin samples

DIC

logical indicating whether or not to calculate the Deviance Information Criterion (DIC)

parallel

logical indicating whether or not to run MCMC chains in parallel or sequentially (default = FALSE)

Value

an mcmc.list object

Author(s)

John Giles

See Also

Other model: fit.gravity(), fit.prob.travel(), rjags.combine(), rjags.mcmc.list(), summarize.hmob()


gilesjohnr/hmob documentation built on Aug. 8, 2020, 1:26 a.m.