getModel: Get a JAGS model file

View source: R/getModel.R

getModelR Documentation

Get a JAGS model file

Description

This function provides an easy way for readers to get the JAGS model files used in the book. The modelID is the 4-5 character identifier used in the book. For example to get 'model-001.bugs.R', you would use getModel("001").

Usage

getModel(modelID)

Arguments

modelID

a string containing a valid model ID

Value

a string containing the model. The intention is that this can be written to disk.

Examples

getModel("001")

jmcurran/jaggR documentation built on Nov. 2, 2023, 11:04 a.m.