run_model: run_model

Description Usage Arguments Value Author(s)

Description

A method to run the model

Usage

1
2
run_model(model = "SA_allelemodel1.jag", df, inits, parameters,
  n.chains = 1, n.burnin = 99, n.iter = 999)

Arguments

model

The name of the model This is the file name in the inst/models directory of the package

df

the object from clean_data

inits

An inits function. This is a function that returns the object that is congruent with the structure required by the model.

parameters

Parameters to monitor. A character vector of the parameters to monitor from BUGS

n.chains

The number of independent Markov chains

n.burnin

The number of samples to discard at the start of the Markov chains (burnin length)

n.iter

The total number of iterations including the burnin

Value

A model object

Author(s)

Thomas Rosendal


SVA-SE/kilde documentation built on May 9, 2019, 11:44 a.m.