make_modelstring: Create the JAGS model file

View source: R/makeModel.R

make_modelstringR Documentation

Create the JAGS model file

Description

This writes the desired fingerprint mixture model into a separate file to be read into JAGS. It also returns the nodes that need to be monitored during the MCMC run.

Usage

make_modelstring(
  model.opt = c("2sex.2age", "1sex.1age", "2sex.1age", "1sex.2age", "compare1v2age",
    "compare1v2ageNEXT"),
  filename = "bayesmodel.txt",
  pseudopriors = NULL
)

Arguments

model.opt

a string representing which version of the model you want to run

filename

the name of the text document that the model will be written to

pseudopriors

when running a "super model," this is where you pass the posterior distributions of the two models to then be used as pseudopriors

Value

a list of the nodes (parameters) that should be monitored during the JAGS MCMC run

Author(s)

Andrew Burchill, andrew.burchill@asu.edu

Examples

print("hello")


andburch/bayesianfingerprintr documentation built on March 11, 2023, 8:53 p.m.