CreateData: High-Level interface to create the necessary objects for the...

Description Usage Arguments Details Value

View source: R/stress_interface.R

Description

This function calls a series of helper functions to create the model objects to run the Gibbs sampler.

Usage

1
CreateData(PATHS, priors = NULL, ...)

Arguments

PATHS

a list of file paths. This function is intended to be used alongside a GUI that allows the User to select the file paths for each component. The following paths are required in the list:

forfile

the formula file.

fundir

the directory containing the functions.

workdir

the directory where the results and intermediate inputs are to be stored.

inputfile

path to the basic input file (a .csv).

resultsdir

the path of the results directory, where the sampler output is to be stored.

priorbeta

the path of the prior parameters to be used in the simulation.

vbeta

the path for the prior parameters to the covariance matrix of the parameters.

priors

an optional ilist object. If NULL, the .SelectPriors interface will be called to enter the priors; otherwise, it will use the ilist supplied by the user.

...

additional parameters to be passed to .DataInput and .SelectPriors.

Details

This function is the main workhorse to 'set the stage' for the Gibbs sampler. All required objects are placed inside a list and returned as inputs.

Value

a list with the following components:

dats

the data set (a zoo object).

form

a ForList object containing the formulas.

Zprop

a Ztprops object containing the model structure.

Z

the model matrices in Zlist form

Y

the model dependent vectors in Ylist form

ilist

the model prior list.


gamalamboy/stresstest documentation built on May 17, 2019, 1:33 p.m.