Prev Next sample_table

@(@\newcommand{\B}[1]{ {\bf #1} } \newcommand{\R}[1]{ {\rm #1} } \newcommand{\W}[1]{ \; #1 \; }@)@ This is dismod_at-20221105 documentation: Here is a link to its current documentation .
The Sample Table: Samples of Variable Values

Simulated Data
User's Choice
sample_id
sample_index
var_id
var_value
Example

Simulated Data
The sample_command creates this table with one optimal estimates of the model_variables . For each valid simulate_index . in the data_sim_table , there is an equal sample_index in the table with the optimal variables for the corresponding measurement.

User's Choice
This table may also be created directly by the user, with the aid of the var_table . This is useful when one wants to use the predict_command with a specific set of variable values; e.g., the values in the fit_var_table .

sample_id
This column has type integer and is the primary key for this table. Its initial value is zero, and it increments by one for each row.

sample_index
This column has type integer and specifies the index, in the data_sim table, that a complete set of model_variables , in the sample table, corresponds to. If n_var is the number of rows in the var_table ,
   
sample_index = mod(sample_idn_var)
The range of sample_index is form zero to number_simulate minus one.

var_id
This column has type integer and specifies the model_variables that var_value corresponds to; see var_id . If n_var and sample index are as above,
   
sample_id = sample_index * n_var + var_id

var_value
This column type real and is the variable value for this var_id and sample_index .

Example
The sample_command.py is an example that creates this table.
Input File: omh/table/sample_table.omh