Create a new variable in the simulation_history by taking sums and products of existing variables (and their complements and inverses). These new variables can be compared with observed data streams.

add_sim_report_expr(model, expr_nm, formula)

Arguments

model

flexmodel object

expr_nm

Name of the new variable

formula

formula describing the expression. See avail_for_expr for a function that will return the names of all variables that are available for use in these formulas.

Value

updated flexmodel object