Writing files in CODA format
This function writes files in CODA format to be processed or imported, e.g, by some other software.
1 2 3
Character vector of length 1, name of a variable in the model.
The filestem of the CODA files to be generated. See details.
Arguments to select a slice of monitored values corresponding to iterations
Arguments to select a sub group of chains.
to only use every
Example for argument
stem = "c:/myFolder/foo", the resulting files
are called ‘fooCODAchain1.txt’, ..., ‘fooCODAchainN.txt’, and
‘fooCODAindex.txt’. They are written into the
and copied to the path ‘"c:/myFolder"’.
If the variable of interest is an array, slices of the array can be selected using the notation
variable[lower0:upper0, lower1:upper1, ...].
If the arguments are left at their defaults the whole sample for all chains will be used for output.
Prints ‘CODA files written’.
If the MCMC simulation has an adaptive phase it will not be possible to make inference using values sampled before the end of this phase.