costeffectiveness_tree: Constructor for a Cost-Effectiveness Tree Object

Description Usage Arguments Value See Also Examples

View source: R/create_costeffectiveness_tree.R

Description

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.

Usage

1
2
costeffectiveness_tree(yaml_tree, details = "", data_prob = NA,
  data_val = NA, ...)

Arguments

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

Value

list of class costeffectiveness_object

See Also

calc.expectedValues

Examples

1
2
3
4
5
CEtree <- costeffectiveness_tree(yaml_tree = "raw data/LTBI_dtree-cost-distns.yaml")
print(CEtree)

CEtree$osNode <- calc.expectedValues(CEtree$osNode)
print(CEtree)

n8thangreen/treeSimR documentation built on Feb. 20, 2022, 11:54 a.m.