A constructor function for creating S3 objects of class
stansim_data
. stansim_data
objects are the in-memory option
for storing the results of a call to stansim_simulate()
and feeding
the results to stansim()
.
stansim_data(data_name, datasets, compiled_model, input_data, param_values, vars)
data_name | A name attached to the |
---|---|
datasets | A vector of names of simulated datasets. |
compiled_model | An object of S4 class |
input_data | Values for the data field in the provided stan model. |
param_values | A list containing the named values for the stan model parameters used to simulate data. |
vars | The names of the stan variables saved. |
An S3 object of class stansim_data
.