Create Cost-Effectiveness Tree For Long Dataframe
Source:R/create_ce_tree_long_df.R
create_ce_tree_long_df.Rd
Completely specifying cost-effectiveness decision tree. Matches labels on branches to the corresponding probabilities and cost/utility values.
Usage
create_ce_tree_long_df(
tree_list = NA,
tree_mat = NA,
label_probs,
label_costs,
label_health,
pname_from_to,
cname_from_to,
hname_from_to
)
Arguments
- tree_list
Parent-child ids format
- tree_mat
Matrix format
- label_probs
List
- label_costs
List
- label_health
Health labels
- pname_from_to
Dataframe name, from, to
- cname_from_to
Dataframe name, from, to
- hname_from_to
Health names for from-to edges