create_ce_tree_long_df: Create Cost-Effectiveness Tree For Long Dataframe

View source: R/create_ce_tree_long_df.R

create_ce_tree_long_dfR Documentation

Create Cost-Effectiveness Tree For Long Dataframe

Description

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

Value

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.

See Also

[CEdecisiontree::define_model()] [CEdecisiontree::dectree()] [CEdecisiontree::run_cedectree()]


n8thangreen/CEdecisiontree documentation built on Sept. 13, 2022, 5:25 a.m.