skeleton: Skeleton

View source: R/jagshelper1.R

skeletonR Documentation

Skeleton

Description

Prints an example 'JAGS' model and associated 'jagsUI' code to the console, along with code to simulate a corresponding dataset. This is intended to serve as a template that can be altered as needed by the user.

Usage

skeleton(NAME = "NAME")

Arguments

NAME

Name to append to JAGS model object, etc.

Value

NULL

Note

The printed code will use the cat() function to write the model code to an external text file. It may be desirable to use a call to ⁠\link{tempfile}()⁠ instead, to eliminate creation of unneeded files.

Author(s)

Matt Tyers

Examples

skeleton("asdf")

jagshelper documentation built on Oct. 22, 2024, 1:06 a.m.