Parse a structural function (or exogenous probability)
Source:R/structural_functions.R
create_structural_function.RdParses a string representing a structural equation or probability and converts it into an R function. Variable names appearing in the equation become arguments to the resulting function. Numeric inputs are interpreted as exogenous probabilities.