Skip to contents

The function fits the model using JAGS.

Usage

FitJAGS(
  data,
  n_chains = 4,
  n_adapt = 1000,
  n_iter = 1000,
  thin = 1,
  ess_crit = 200,
  max_iter = 1000,
  seed = NULL
)

Arguments

data

R object. Output of the GenData() function.

n_chains

The number of parallel chains for the model.

n_adapt

The number of iterations for adaptation.

n_iter

Number of iterations to monitor.

thin

Thinning interval for monitors.

ess_crit

Positive integer. Effective sample size critria.

max_iter

Positive integer. Maximum number of reruns to get effective sample size.

seed

Integer. Random seed.

See also

Other Model Fitting Functions: FitDTVAR(), FitMLVAR()

Examples

if (FALSE) { # \dontrun{
set.seed(42)
data <- GenData(taskid = 1)
fit <- FitJAGS(data = data)
summary(fit)
} # }