fitModel: Utility Function to Fit a JAGS Model

Description Usage Arguments Value

View source: R/data.R

Description

The observedData tibble is converted to a list and the extras list is then appended to it. An additional element, "n", containing the number of rows in observdData is added, and the combined list is passed to runjags the data argument.

Usage

1
2
3
4
5
6
7
8
fitModel(
  modelString,
  observedData,
  extras = list(),
  inits = list(),
  auto = FALSE,
  ...
)

Arguments

modelString

the JAGS model string

observedData

a tibble containing the observed data

extras

additional elements of the named list pssed to runjags

inits

the value of the inits parameter passed to runjags

auto

use autorun.jags or run.jags?

...

additional arguments passed to runjags

Value

the runjags object produced by JAGS


PuzzledFace/crmReporter documentation built on June 21, 2020, 12:52 a.m.