Description Usage Arguments Value
This is a wrapper function handling only one set of input parameters or multiple sets of input parameters.
1 | dectree_wrapper(params_basecase, treefunc, popsize = 1, vary_param_samp = NULL)
|
params_basecase |
A list of parameters with the basecase values. The list should be organized as 'list(par1 = 0.5, par2 = 0.2, par3 = 0.1, par4 = 0.5)' with the parameter names and values. For the AMUA decision tree model, this argument is the 1st output of 'parse_amua_tree()'. |
treefunc |
Text data of the AMUA decision model. This argument is the 2nd output of 'parse_amua_tree()'. |
popsize |
The population size of the decision problem. The default is 1. |
vary_param_samp |
The default is set to 'NULL' if there is no varying parameters. If some parameters are varying, this argument takes a 'data.frame' of different parameter values. The column names should be a subset of the parameter names in 'params_basecase'. |
The function returns either a 'data.frame' or a list of 'data.frame's. If there is no varying parameters, the function will return only one 'data.frame' with all the cost and effectiveness of each strategy. If there are varying parameters (when 'vary_param_samp' is not 'NULL'), the function will return a list of 'data.frame's. If there are multiple outcomes of the decision tree model, the number of the elements in the list is the number of outcomes plus 1. Each outcome has a 'data.frame' of outcomes calculated based on the different parameter values provided to the model for each strategy. In addition, the function will return the parameter set for the varying parameters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.