dectree_convert: The function converting the decision tree model exported from...

Description Usage Arguments Value

View source: R/tree_wrapper.R

Description

This is a function converting the decision tree model exported from AMUA. It is required to run 'parse_amua_tree()' first before running this function.

Usage

1
dectree_convert(params_basecase, treefunc, popsize = 1)

Arguments

params_basecase

A list of parameters with the basecase values. The list should be organized as 'list(par1 = 0.5, par2 = 0.2)' 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.

Value

The function returns a 'data.frame' with the strategy name as the first column and the expected effectiveness and cost are in the following columns.


syzoekao/CEAutil documentation built on Oct. 31, 2021, 12:29 a.m.