Description Usage Arguments Details Value Author(s) See Also Examples
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.
1 | writeModel(object, writeDraws = FALSE, path = getwd())
|
object |
an |
writeDraws |
whether to write out the individual draw files. (Defaults to |
path |
the folder location to write the files. (Defaults to |
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.
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 |
Jeff Keller <jeff.keller@rsginc.com>
1 | # writeModel(model)
|
Loading required package: MCMCpack
Loading required package: coda
Loading required package: MASS
##
## Markov Chain Monte Carlo Package (MCMCpack)
## Copyright (C) 2003-2018 Andrew D. Martin, Kevin M. Quinn, and Jong Hee Park
##
## Support provided by the U.S. National Science Foundation
## (Grants SES-0350646 and SES-0350613)
##
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.