powered by
Takes a set of Monte Carlo model expressions and evaluates them and creates an mcmodule containing results and metadata.
eval_module( exp, data, param_names = NULL, prev_mcmodule = NULL, summary = FALSE, mctable = set_mctable(), data_keys = set_data_keys(), match_keys = NULL, keys = NULL, overwrite_keys = NULL )
An mcmodule object containing data, expressions, and nodes
Model expression or list of expressions to evaluate
Input data frame containing model parameters
Named vector for parameter renaming (optional)
Previous module(s) for dependent calculations
Logical; whether to calculate summary statistics
Reference table for mcnodes, defaults to set_mctable()
Data structure and keys, defaults to set_data_keys()
Keys to match prev_mcmodule mcnodes and data by
Optional explicit keys for the input data (character vector)
Logical or NULL. If NULL (default) it becomes TRUE when data_keys is NULL or an empty list; otherwise FALSE.
# Basic usage with single expression eval_module( exp = imports_exp, data = imports_data, mctable = imports_mctable, data_keys = imports_data_keys )
Run the code above in your browser using DataLab