View source: R/create_ce_tree_long_df.R
create_ce_tree_long_df | R Documentation |
Completely specifying cost-effectiveness decision tree. Matches labels on branches to the corresponding probabilities and cost/utility values.
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 )
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 |
Long format dataframe for input to 'define_model()' or 'dectree()'. Note this is for a single edge value type (e.g. cost or QALY). Use 'run_cedectree()' for cost and health.
[CEdecisiontree::define_model()] [CEdecisiontree::dectree()] [CEdecisiontree::run_cedectree()]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.