Prev Next

@(@\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 Predict Command

Syntax
database
source
     sample
     fit_var
     truth_var
predict_table
Example

Syntax
dismod_at database predict source

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

source
This argument specifies where model variable values to use for the predictions. The possible values are listed below:

sample
If source is sample, the values in the sample_table are used for the predictions. In this case there are number_simulate sets of model variables that predictions are computed for. If the samples were simulated using the asymptotic method, they may not be withing the lower and upper limits for the corresponding variables. The variables are censored to be within their limits before the predictions are computed.

fit_var
If source is fit_var, the values in the fit_var_table are used for the predictions. In this case there is only one set of model variables that the predictions are computed for and sample_index is always zero.

truth_var
If source is truth_var, the values in the truth_var_table are used for the predictions. In this case there is only one set of model variables that the predictions are computed for and sample_index is always zero.

predict_table
A new predict_table is created each time this command is run. It contains the average integrand values for set of model variables and each avgint_id in the avgint subset .

Example
The files predict_command.py and user_predict_fit.py contain examples and tests using this command.
Input File: devel/cmd/predict_command.cpp