Description Usage Arguments Value
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()
.
1 2 | 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
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.