bugs2jags {coda} | R Documentation |
bugs2jags
reads WinBUGS data in "S-Plus" format (the format
created by the dput
function) and writes it in dump
format.
NB WinBUGS stores its arrays in row order. This is different
from R and JAGS which both store arrays in column
order. This difference is taken into account by bugs2jags
which
will automatically reorder the data in arrays, without changing the
dimension
bugs2jags(infile, outfile)
infile |
name of the input file |
outfile |
name of the output file |
Martyn Plummer
Spiegelhalter DJ, Thomas A, Best NG and Lunn D (2003). WinBUGS version 1.4 user manual MRC Biostatistics Unit, Cambridge, UK.