simulate_command#

View page source

The Simulate Command#

Syntax#

dismod_at database simulate number_simulate

database#

Is an http://www.sqlite.org/sqlite/ database containing the dismod_at input tables which are not modified.

number_simulate#

Is the number of simulations. Each simulation contains a complete data set.

meas_value#

The meas_value in the data table is not used.

truth_var_table#

The truth_var_table is an addition input table for this command. It specifies the values for the model_variables used during the simulation. This table can be create by the set_command , or the user can create it directly with the aid of the var_table (created by the init_command ).

data_sim_table#

A new data_sim_table is created by this command. It contains number_simulate values for each data_id in the data_subset table. Hence the number of rows in data_sim_table is number_simulate times the number of rows in data_subset_table .

prior_sim_table#

A new prior_sim_table is created by this command. It contains number_simulate values for each var_id in the var table. Hence the number of rows in data_sim_table is number_simulate times the number of rows in var_table .

Example#

The file simulate_command.py contains an example and test using this command.