![]() |
Prev | Next | prior_sim_table |
prior_sim
table is created during a
simulate_command
.
It contains number_simulate
sets of priors where each set
has one row for each variable in the var_table
.
Each row has a value, age difference, and time difference prior.
integer
and is the primary key for this table.
Its initial value is zero, and it increments by one for each row.
integer
. It specifies the index
for this simulated prior value. This index starts at zero,
repeats as the same for the entire set of
var_id
values,
and then increments by one between prior sets.
The final (maximum) value for
simulate_index
is
number_simulate
minus one.
integer
and is the primary key
for the var_table
.
This identifies which var_id
each row of the prior_sim table corresponds to.
If
n_var
is the number of rows in the var table,
prior_sim_id = simulate_index * n_var + var_id
for
simulate_index
equal zero to
number_simulate-1
and
var_id
equal zero to
n_var-1
.
real
and is
a simulated from the value prior for this variable.
If there is no value prior, or if the density for the value prior
is uniform,
prior_sim_value
is null
.
zero_sum_child_rate
for a rate
requires that the same smoothing is used by all the child random effects
for that rate.
This is done by simulating using independent priors and then subtracting
averages of the simulated values.
real
and is
a simulated from the dage prior for this variable.
If there is no dage prior, or if the density for the dage prior
is uniform,
prior_sim_dage
is null
.
real
and is
a simulated from the dtime prior for this variable.
If there is no dtime prior, or if the density for the dtime prior
is uniform,
prior_sim_dtime
is null
.
sim
is the value simulated just using the
density_id
,
and
lower
,
upper
are the corresponding limits;
the corresponding simulated value or difference is
max[ upper, min( lower , sim ) ]