Description Usage Arguments Details Value
This function applies rule (which takes in parameter settings and outputs
a synthetic dataset) and criterion (which takes a synthetic dataset and outputs
the results from estimators) to all the rows of df_param (which is a matrix
that contains different parameter settings for each row). The distinction between
rule and criterion is only made by the user, as the user can design
exactly the same simulation that uses one but not the other.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
rule |
function |
criterion |
function |
df_param |
data frame |
ntrials |
number of trials for each row |
specific_trials |
vector of integers of specific trials to run |
cores |
number of cores, where if larger than |
shuffle_group |
either |
chunking_num |
integer, where if |
required_packages |
packages to load into the multisession if
|
filepath |
string |
verbose |
boolean |
The input to rule must be a vector (a row from df_param), while
the input to criterion must be first the output of rule and second
a vector (the same row from df_param). Both these functions is allowed
to output lists.
The output to simulator is a list, one element for each
row of df_param. Each element of the list is typically a list or
a matrix. This depends on how the user set up what criterion returns.
The function has a tryCatch call, so if an error happens, the result for that
trial and row of df_param will be an NA.
The remaining inputs for simulator are cosmetic.
filepath is a filepath to the temporary save location. If set to not NA,
simulator will save the results of every row of df_param there
as it runs the simulations.
list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.