writeModel {RSGHB} | R Documentation |
Write an RSGHB Model Object as Series of CSVs
Description
Function for writing an RSGHB model object as a series of CSV files to the disk. Files are written in Sawtooth's CBC HB format to allow for easier integration with analysis processes built around that software.
Usage
writeModel(object, writeDraws = FALSE, path = getwd())
Arguments
object |
an |
writeDraws |
whether to write out the individual draw files. (Defaults to |
path |
the folder location to write the files. (Defaults to |
Details
All output files are named with a object[["modelname"]]
prefix. (E.g. modelname.log, modelname_C.csv)
If writeDraws
is TRUE
, a CSV file for each of object[["gNP"]]
individuals is written to the disk. This may take a long time if object[["gNEREP"]]
or object[["gNP"]]
is large.
Value
None, though a series of files is written to path
:
modelname.log |
A log file containing summary model information and the estimation iteration detail. |
modelname_logPlot.png |
A faceted plot of all appropriate model statistics stored in the iteration detail of the model ( |
modelname_A.csv |
If |
modelname_B.csv , modelname_Bsd.csv |
If |
modelname_C.csv , modelname_Csd.csv |
If |
modelname_D.csv |
If |
modelname_F.csv |
If |
modelname_pvMatrix.csv |
If |
Author(s)
Jeff Keller <jeff.keller@rsginc.com>
See Also
Examples
# writeModel(model)