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)
| model_output | output from |
|---|---|
| type | a character vector of the "type" to total |
| treatment | a name of a treatment to filter by |
a comma-formatted number for the total for that type/treatment