model.rube {rube} | R Documentation |
Show the model for a rube object. This show a nicely formatted version of the model code.
## S3 method for class 'rube' model(x, ..., indent=" ", lineNumbers=TRUE)
x |
a rube 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 |
Displays the model code with indenting.
Returns NULL invisibly.
Howard J. Seltman <hseltman@stat.cmu.edu>
m = "model { for (i in 1:5) { x[i]~dnorm(mu,1) } mu~dnorm(0,0.01) }" model(rube(m))