View source: R/HelperFunctions.R
| add_var_computer | R Documentation | 
This function computes additional secondary variables that are not computed in a models respective simulation functions. The simulation functions only compute the primary variables of a model such as L, K and Y in the Basic Solow Growth Model (BS).
add_var_computer(
  sim_data,
  add_vars,
  parameter_data,
  technology_variant,
  solowversion
)
sim_data | 
 The tibble that is being filled in the simulation function.  | 
add_vars | 
 Vector with the encoded variables that are secondary and need to be computed to make the simulation table complete.  | 
parameter_data | 
 The output from   | 
technology_variant | 
 A string indicating the exogenous (  | 
solowversion | 
 The model code for the model, such as "BS" or "ESSOE". (The same variables such as WR or RR are computed differently depending on the model.)  | 
See SimulateBasicSolowModel() for an example.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.