fit.jagsMod: fit.jagsMod

Description Usage Arguments Value

View source: R/fit_jagsMod.R

Description

Fits a Bayesian model using jags and R2jags

Usage

1
2
3
4
5
6
7
8
9
fit.jagsMod(
  mod.dat,
  init.fun,
  params,
  burnin,
  n.iter,
  init.value.warning,
  n.tries
)

Arguments

mod.dat

the model data to use for the model fit

init.fun

the init function to use for the model fit

params

a vector of names indicating the parameters to trace during the jags fit.

burnin

the number of iterations to use as burnin.

n.iter

the number of iterations to run following burnin for the initial jags fit. Defaults to 500 + burnin,

init.value.warning

indicates if a warning should be given if the init.fun generated fails.

n.tries

the number of tries to attempt to fit the model and attain good chain mixing. See details below.

Value

The fitted jags model output


AIMS/NEC-estimation documentation built on Dec. 7, 2020, 10:44 a.m.