model.bugsCheck {rube}R Documentation

Show the model for a rube bugsCheck object

Description

Show the model for a rube bugsCheck object. This show a nicely formatted version of the model code.

Usage

## S3 method for class 'bugsCheck'
model(x, ..., indent="  ", lineNumbers=TRUE)

Arguments

x

a rube bugsCheck object as created by rube()

...

optional arguments passed to default

indent

the string used for indenting ("\\t" is OK)

lineNumbers

a logical value indicating lineNumbers should be shown

Details

Displays the model code with indenting.

Value

Returns NULL invisibly.

Author(s)

Howard J. Seltman <hseltman@stat.cmu.edu>

Examples

  m = "model {
        for (i in 1:5) {
          x[i]~dnorm(mu,1)
        }
        mu~dnorm(0,0.01)
      }"
  model(rube(m))

[Package rube version 0.3-11 Index]