![]() |
Prev | Next | data_sim_table |
data_sim
table is created during a
simulate_command
.
It contains number_simulate
sets of measurements where each set
has one value for each entry in the data_subset_table
.
integer
and is the primary key for this table.
Its initial value is zero, and it increments by one for each row.
Given the model_variables
as specified by
truth_var_table
,
the measurement uncertainty is independent for each row
and has standard deviation meas_std
.
integer
. It specifies the index
for this simulated measurement set. This index starts at zero,
repeats as the same for the entire subset of
data_id
values,
and then increments by one between measurement sets.
The final (maximum) value for
simulate_index
is
number_simulate
minus one.
integer
and is the primary key
for the data_subset_table
.
This identifies which data_id
each row of the data_sim table corresponds to.
If
n_subset
is the number of rows in the data_subset table,
data_sim_id = simulate_index * n_subset + data_subset_id
for
simulate_index
equal zero to
number_simulate-1
and
data_subset_id
equal zero to
n_subset-1
.
real
and is
the simulated measurement value that for the specified row of the data table;
see z
in the method below.
If the density for this
data_id
is censored (not censored)
data_sim_value
has value
max(z, 0)
, (
z
).
data_id
to denote the
data_id
corresponding to the
data_subset_id
corresponding to this
data_sim_id
.
data_id
.
data_id
.
data_id
.
data_id
.
data_id
.
data_id
.
data_id
; i.e.,
@[@
\sigma = \left\{ \begin{array}{ll}
\log( y + \eta + \Delta ) - \log(y + \eta) & \R{if \; log \; density}
\\
\Delta & \R{otherwise}
\end{array} \right.
@]@
Note that @(@
\sigma
@)@ does not depend on simulated noise
@(@
e
@)@ defined below (because it is defined using @(@
y
@)@
instead of @(@
z
@)@).
data_id
.
Note that @(@
\sigma
@)@ does not depend on simulated noise
@(@
e
@)@ defined below.
data_id
without log qualification.
For example, if the data density for this
data_id
is
log_gaussian
, the @(@
e
@)@ is simulate using a Gaussian
distribution.
data_sim_value
corresponding to this
data_sim_id
.
It the density is linear
,
@[@
z = A + e
@]@
It the density is log scaled
,
@[@
\begin{array}{rcl}
e & = & \log( z + \eta ) - \log( A + \eta )
\\
\exp (e) & = & ( z + \eta ) / ( A + \eta )
\\
z & = & \exp(e) ( A + \eta ) - \eta
\end{array}
@]@