R/create_costeffectiveness_tree.R
costeffectiveness_tree.Rd
The resulting object is used in the main package functions. Branch distributions are currently permitted as uniform, gamma and triangle. All branches require some distribution. All branches must end in a terminal node.
costeffectiveness_tree(yaml_tree, details = "", data_prob = NA, data_val = NA, ...)
yaml_tree | YAML file or location address |
---|---|
details | General details of decision tree |
data_prob | Branching probability data |
data_val | Cost or health data |
... | Additional arguments to be passed |
list of class costeffectiveness_object
calc.expectedValues
CEtree <- costeffectiveness_tree(yaml_tree = "raw data/LTBI_dtree-cost-distns.yaml")#> Warning: cannot open file 'raw data/LTBI_dtree-cost-distns.yaml': No such file or directory#> Error in readLines(con): cannot open the connectionprint(CEtree)#> Error in print(CEtree): object 'CEtree' not foundCEtree$osNode <- calc.expectedValues(CEtree$osNode)#> Error in calc.expectedValues(CEtree$osNode): could not find function "calc.expectedValues"print(CEtree)#> Error in print(CEtree): object 'CEtree' not found