powered by
Creates Monte Carlo nodes (mcnodes) based on instructions provided in a configuration table (mctable) and input variables from a dataframe.
create_mcnodes(data, mctable = set_mctable(), envir = parent.frame())
No return value, creates MC nodes in the specified environment
A data frame containing the input variables for creating Monte Carlo nodes
A configuration table specifying MC node definitions. Must contain columns:
mcnode: Name of the Monte Carlo node
mc_func: Distribution function to use (if applicable)
transformation: Optional transformation to apply to input data
from_variable: Optional source variable name for transformation
Environment where MC nodes will be created (default: parent.frame())
create_mcnodes(data = imports_data, mctable = imports_mctable)
Run the code above in your browser using DataLab