Get the total value generated by the model for a given treatment. Can be used to calculate for referrals, treatments etc.

model_totals(model_output, type, treatment)

Arguments

model_output

output from run_model() and get_model_output()

type

a character vector of the "type" to total

treatment

a name of a treatment to filter by

Value

a comma-formatted number for the total for that type/treatment