Validates and standardises a data frame of subgroup-specific CEA results
for use in run_full_dcea.
Examples
df <- tibble::tibble(
group = 1:5,
inc_qaly = c(0.3, 0.4, 0.5, 0.55, 0.6),
inc_cost = rep(10000, 5),
pop_share = rep(0.2, 5)
)
prepare_subgroup_cea(df, "group", "inc_qaly", "inc_cost", "pop_share")
#> # A tibble: 5 × 5
#> group inc_qaly inc_cost pop_share icer
#> <int> <dbl> <dbl> <dbl> <dbl>
#> 1 1 0.3 10000 0.2 33333.
#> 2 2 0.4 10000 0.2 25000
#> 3 3 0.5 10000 0.2 20000
#> 4 4 0.55 10000 0.2 18182.
#> 5 5 0.6 10000 0.2 16667.