tristansnowsill / icerui

Calculate Uncertainty Intervals for Incremental Cost-Effectiveness Ratios (ICERs)
Other
0 stars 0 forks source link

Ideas for comparison field #6

Open tristansnowsill opened 4 years ago

tristansnowsill commented 4 years ago

The comparison field is currently not great. It works for BCEA::bcea() objects, but is problematic for heemod::run_psa() objects.

Perhaps it would be possible to specify the comparisons using languages, e.g.:

confint(..., comparison = intervention ~ comparator)

Where "intervention" and "comparator" are names from bcea$interventions or psa$psa$.strategy_names.

For multiple comparisons you could then have:

confint(..., comparison = intervention ~ list(comp1, comp2, comp3))
tristansnowsill commented 4 years ago

Currently working on this in branch develop with functions to extract comparisons from BCEA::bcea() objects either by:

Will aim to achieve similar for heemod::run_psa() objects, although semantics of index and name may differ because heemod and BCEA take different approaches.