Individualized cost-effectiveness analysis (iCEA) evaluates the cost-effectiveness of treatments at the individual (or subgroup) level. This has two major implications:

- Optimal treatments will vary across patients.
- Treatments will be more cost-effective for some patients than others.

The `hesim`

package help facilitate iCEA by providing a number of functions for analyzing subgroup level health and cost outcomes from simulation models that quantify parameter uncertainty using probabilistic sensitivity analysis (PSA). These functions take simulation output and generate measures commonly used for technology assessment including:

- net monetary benefits (NMBs).
- incremental cost-effectiveness ratios (ICERs).
- cost-effectiveness acceptability curves (CEACs).
- the expected value of perfect information (EVPI).

The rest of this document provides an overview of iCEA and how it can be conducted using `hesim`

. The perspective is Bayesian in nature in that it is concerned with estimating the entire distribution of outcomes rather than just expected values (Baio 2012; Baio and Dawid 2015). It also stresses that both optimal treatments and the cost-effectiveness of those treatments vary across individuals (Basu and Meltzer 2007; Espinoza et al. 2014).

Decision analysis provides a formal framework for making treatment decisions based on the utility that a therapy provides to a patient population. Decisions are typically made using a net benefit approach grounded in expected utility theory. The optimal treatment strategy is the one that maximizes expected NMBs where expected NMBs are calculated by averaging over the patient population and uncertain parameters \(\theta\). For a given subgroup \(g\) and parameter set \(\theta\), NMBs are computed as the difference between the monetized health gains from an intervention less costs, or,

\[ \begin{aligned} NMB_g(j,\theta) = e_{gj}\cdot k- c_{gj}, \end{aligned} \]

where \(e_{gj}\) and \(c_{gj}\) are measures of clinical effectiveness (e.g. QALYs) and costs in subgroup \(g\) using treatment \(j\) respectively, and \(k\) is a decision makers willingness to pay per unit of clinical effectiveness. The optimal treatment for a given subgroup is the one that maximizes expected NMBs,

\[ \begin{aligned} j^{*}_g = \text{argmax}_j E_{\theta} \left[NMB_g(j,\theta)\right]. \end{aligned} \]

In practice, new interventions are usually compared to a standard treatment often referred to as the comparator. In these cases, a new treatment in a given subgroup is preferred to the comparator if the expected incremental net monetary benefit (INMB) of the new treatment is positive; that is, treatment 1 is preferred to treatment 0 in subgroup \(g\) if \(E_\theta \left[INMB_g\right] > 0\) where the INMB in a particular subgroup is given by

\[ \begin{aligned} INMB_g(\theta) = NMB_g(j = 1, \theta) - NMB_g(j = 0, \theta). \end{aligned} \] Equivalently, treatment \(1\) is preferred to treatment \(0\) in subgroup \(g\) if the incremental cost-effectiveness ratio (ICER) is greater than the willingness to pay threshold \(k\),

\[ \begin{aligned} k > \frac{c_{g1} - c_{s0}}{e_{g1} - e_{g0}} = ICER_g. \end{aligned} \]

Expected NMBs are expected values and ignore parameter uncertainty. This implies that NMBs are uncertain and that optimal treatment strategies may be selected incorrectly. This uncertainty can be quantified using PSA, which uses Bayesian and quasi-Bayesian techniques to estimate the distribution of NMBs given the distribution of the parameters for each treatment strategy

Since the joint distribution of the model parameters cannot be derived analytically (except in the simplest cases), the distribution of \(\theta\) is approximated by simulating the parameters from their joint posterior distribution and calculating relevant quantities of interest as a function of the simulated parameters. For each treatment strategy and subgroup, PSA therefore produces \(n\) random draws from the posterior distribution of clinical effectiveness and costs,

\[ \begin{aligned} e_{gj} &= [e_{gj}^1, e_{gj}^2, \dots, e_{gj}^n] \\ c_{gj} &= [c_{gj}^1, c_{gj}^2, \dots, c_{gj}^n]. \end{aligned} \]

Below we simulate costs and QALYs for three treatment strategies and two subgroups (in a real world analysis, this output would be derived from a detailed health-economic simulation model). Strategy 1 is the current standard of care; it is the cheapest therapy, but also the least efficacious. Strategies 2 and 3 are equally costly, but Strategy 2 is more effective in subgroup 1 while Strategy 3 is more effective in subgroup 2.

```
nsims <- 1000
# cost
c <- vector(mode = "list", length = 6)
names(c) <- c("Strategy 1, Grp 1", "Strategy 1, Grp 2", "Strategy 2, Grp 1",
"Strategy 2, Grp 2", "Strategy 3, Grp 1", "Strategy 3, Grp 2")
c[[1]] <- rlnorm(nsims, 2, .1)
c[[2]] <- rlnorm(nsims, 2, .1)
c[[3]] <- rlnorm(nsims, 11, .15)
c[[4]] <- rlnorm(nsims, 11, .15)
c[[5]] <- rlnorm(nsims, 11, .15)
c[[6]] <- rlnorm(nsims, 11, .15)
# effectiveness
e <- c
e[[1]] <- rnorm(nsims, 8, .2)
e[[2]] <- rnorm(nsims, 8, .2)
e[[3]] <- rnorm(nsims, 10, .8)
e[[4]] <- rnorm(nsims, 10.5, .8)
e[[5]] <- rnorm(nsims, 8.5, .6)
e[[6]] <- rnorm(nsims, 11, .6)
# cost and effectiveness by strategy and simulation
library("data.table")
```

`## Warning: package 'data.table' was built under R version 3.4.2`

```
ce <- data.table(sim = rep(seq(nsims), length(e)),
strategy = rep(paste0("Strategy ", seq(1, 3)),
each = nsims * 2),
grp = rep(rep(c("Group 1", "Group 2"),
each = nsims), 3),
cost = do.call("c", c), qalys = do.call("c", e))
head(ce)
```

```
## sim strategy grp cost qalys
## 1: 1 Strategy 1 Group 1 6.316661 7.994689
## 2: 2 Strategy 1 Group 1 8.085110 8.192277
## 3: 3 Strategy 1 Group 1 7.365315 8.042134
## 4: 4 Strategy 1 Group 1 7.980448 7.696629
## 5: 5 Strategy 1 Group 1 6.974847 8.297634
## 6: 6 Strategy 1 Group 1 6.841107 7.704225
```

For any given willingness to pay \(k\), expected NMBs can be calculated by strategy, subgroup, and simulation number. For example, with \(k=150,000\), a reasonable estimate of the value of a life-year in the United States, Strategy 2 provides the highest expected NMBs in subgroup 2 while Strategy 3 provides the highest expected NMBs in subgroup 2.

```
ce <- ce[, nmb := 150000 * qalys - cost]
enmb <- ce[, .(enmb = mean(nmb)), by = c("strategy", "grp")]
enmb <- dcast(enmb, strategy ~ grp, value.var = "enmb")
print(enmb)
```

```
## strategy Group 1 Group 2
## 1: Strategy 1 1198138 1200159
## 2: Strategy 2 1442715 1512596
## 3: Strategy 3 1212544 1588527
```

A number of measures have been proposed in the health economics literature to summarize the PSA. Below we describe the most common measures, which can be calculated using the functions `icea`

and `icea_pw`

. The `icea`

function summarizes results by taking into account each treatment strategy in the analysis, while the function `icea_pw`

summarizes “pairwise” results in which each treatment is compared to a comparator.

We can use the `icea`

function to summarize results from our `data.table`

object of simulated output for a range of willingness to pay values,

```
library("hesim")
ktop <- 200000
icea.dt <- icea(ce, k = seq(0, ktop, 500), sim = "sim", strategy = "strategy",
grp = "grp", e = "qalys", c = "cost")
```

The most important input in `icea`

is the `data.table`

object (`x`

) containing columns for simulation number (`sim`

), treatment strategy (`strategy`

), subgroup (`grp`

), clinical effectiveness (`e`

), and costs (`c`

). Users specify the names of the relevant columns in their output table as strings. The other relevant parameter is \(k\), which is a range of willingness to pay values to use for estimating NMBs.

Likewise, we can use `icea_pw`

to summarize the PSA when directly comparing the two treatment strategies (Strategy 2 and Strategy 3) to the comparator (Strategy 1).

```
icea.pw.dt <- icea_pw(ce, k = seq(0, ktop, 500), comparator = "Strategy 1",
sim = "sim", strategy = "strategy", e = "qalys", c = "cost")
```

The same inputs are used as in `icea`

except users must specify the name of the comparator strategy.

A useful summary measure for quantifying uncertainty is the probability that each treatment strategy is the most cost effective. For a particular subgroup, this is estimated from simulation output as the proportion of simulation draws that each strategy has the highest NMB. For example, consider a random sample of 10 draws from the PSA simulation output and suppose \(k\) is again equal to \(150,000\).

```
library("knitr")
ce.nmb <- dcast(ce[sim %in% sample(1:nsims, 10) & grp == "Group 2"],
sim ~ strategy, value.var = "nmb")
setnames(ce.nmb, colnames(ce.nmb), c("sim", "nmb1", "nmb2", "nmb3"))
ce.nmb <- ce.nmb[, maxj := apply(ce.nmb[, .(nmb1, nmb2, nmb3)], 1, which.max)]
ce.nmb <- ce.nmb[, maxj := factor(maxj, levels = c(1, 2, 3))]
```

sim | nmb1 | nmb2 | nmb3 | maxj |
---|---|---|---|---|

125 | 1174260 | 1485454 | 1678551 | 3 |

207 | 1226795 | 1444899 | 1599203 | 3 |

237 | 1218455 | 1253970 | 1629360 | 3 |

293 | 1140917 | 1632034 | 1622401 | 2 |

324 | 1166782 | 1395222 | 1418960 | 3 |

375 | 1198033 | 1346930 | 1637018 | 3 |

516 | 1280708 | 1315930 | 1588401 | 3 |

527 | 1207383 | 1494480 | 1604701 | 3 |

843 | 1266089 | 1847965 | 1690594 | 2 |

907 | 1209750 | 1756213 | 1457876 | 2 |

```
mce <- prop.table(table(ce.nmb$maxj))
print(mce)
```

```
##
## 1 2 3
## 0.0 0.3 0.7
```

In this example, treatments 1, 2, and 3 have the highest NMBs a fraction 0, 0.3, and 0.7 of the time respectively. The `icea`

function performs this same calculations for a range of values of \(k\) and all `nsims`

random draws of the simulation output. The output is a tidy `data.table`

which facilitates plotting with `ggplot`

.

```
library("ggplot2")
library("scales")
theme_set(theme_bw())
ggplot(icea.dt$mce, aes(x = k, y = prob, col = factor(strategy))) +
geom_line() + facet_wrap(~grp) + xlab("Willingess to pay") +
ylab("Probability most cost-effective") +
scale_x_continuous(breaks = seq(0, ktop, 100000), label = comma) +
theme(legend.position = "bottom") + scale_colour_discrete(name = "Strategy")
```

In group 1, Strategy 2 provides the greatest NMBs with high probability for almost all reasonable values of k. In group 2, the results are less certain, although Strategy 3 provides the greatest NMBs with a higher probability than Strategy 2.

One draw back of the previous measure is that it ignores the magnitude of cost or QALY gains. A measure which combines the probability of being most effective with the magnitude of the expected NMB is the expected value of perfect information (EVPI). Intuitively, the EVPI provides an estimate of the amount that a decision maker would be willing to pay to collect additional data and completely eliminate uncertainty. Mathematically, the EVPI is defined as the difference between the maximum expected NMB given perfect information and the maximum expected NMB given current information. In other words, we calculate the NMB for the optimal treatment strategy for each random draw of the parameters and compare that to the NMB for the treatment strategy that is optimal when averaging across all parameters. Mathematically, the EVPI for subgroup \(g\) is,

\[ \begin{aligned} EVPI_g &= E_\theta \left[max_j NMB_g(j, \theta)\right] - max_j E_\theta \left [ NMB_g(j, \theta)\right]. \\ \end{aligned} \]

To illustrate consider the same random sample of 10 draws from our simulation output used above.

```
strategymax.g2 <- which.max(enmb[[3]])
ce.nmb <- ce.nmb[, nmbpi := apply(ce.nmb[, .(nmb1, nmb2, nmb3)], 1, max)]
ce.nmb <- ce.nmb[, nmbci := ce.nmb[[strategymax.g2 + 1]]]
kable(ce.nmb, digits = 0, format = "html")
```

sim | nmb1 | nmb2 | nmb3 | maxj | nmbpi | nmbci |
---|---|---|---|---|---|---|

125 | 1174260 | 1485454 | 1678551 | 3 | 1678551 | 1678551 |

207 | 1226795 | 1444899 | 1599203 | 3 | 1599203 | 1599203 |

237 | 1218455 | 1253970 | 1629360 | 3 | 1629360 | 1629360 |

293 | 1140917 | 1632034 | 1622401 | 2 | 1632034 | 1622401 |

324 | 1166782 | 1395222 | 1418960 | 3 | 1418960 | 1418960 |

375 | 1198033 | 1346930 | 1637018 | 3 | 1637018 | 1637018 |

516 | 1280708 | 1315930 | 1588401 | 3 | 1588401 | 1588401 |

527 | 1207383 | 1494480 | 1604701 | 3 | 1604701 | 1604701 |

843 | 1266089 | 1847965 | 1690594 | 2 | 1847965 | 1690594 |

907 | 1209750 | 1756213 | 1457876 | 2 | 1756213 | 1457876 |

To calculate EVPI, we average NMBs given current information and NMBs given perfect information across simulation draws.

```
enmbpi <- mean(ce.nmb$nmbpi)
enmbci <- mean(ce.nmb$nmbci)
print(enmbpi)
```

`## [1] 1639241`

`print(enmbci)`

`## [1] 1592706`

`print(enmbpi - enmbci)`

`## [1] 46534.14`

The `icea`

function performs this same calculation across all simulation draws from the PSA and for a number of values of willingness to pay values \(k\). A plot by group of the the EVPI for different values of \(k\) is shown below. The kinks in the plot represent values of \(k\) where the optimal strategy changes.

```
ggplot(icea.dt$evpi, aes(x = k, y = evpi)) +
geom_line() + facet_wrap(~grp) + xlab("Willingess to pay") +
ylab("Expected value of perfect information") +
scale_x_continuous(breaks = seq(0, ktop, 100000), label = comma) +
scale_y_continuous(label = scales::dollar) +
theme(legend.position = "bottom") + scale_colour_discrete(name = "Strategy")
```

We might also be interested in aggregating across subgroups. In particular, the total EVPI can be calculated as a weighted average of the group specific EVPIs,

\[ \begin{aligned} totEVPI &= \sum_{g=1}^{G} w_g EVPI_g, \end{aligned} \] where \(w_g \in (0, 1)\) is a weight denoting that proportion of the population represented by subgroup \(g\) and \(\sum_{g=1}^{G} w_g = 1\).

```
w.dt <- data.table(grp = paste0("Group ", seq(1, 2)), w = c(0.25, .75))
evpi <- icea.dt$evpi
evpi <- merge(evpi, w.dt, by = "grp")
totevpi <- evpi[,lapply(.SD, weighted.mean, w = w),
by = "k", .SDcols = c("evpi")]
ggplot(totevpi, aes(x = k, y = evpi)) +
geom_line() + xlab("Willingess to pay") +
ylab("Total EVPI") +
scale_x_continuous(breaks = seq(0, ktop, 100000), label = comma) +
scale_y_continuous(label = scales::dollar) +
theme(legend.position = "bottom") + scale_colour_discrete(name = "Strategy")
```

`icea`

produces means, 2.5% quantiles, and 97.5% quantiles for costs and efficacy.

`print(icea.dt$summary)`

```
## strategy grp e_mean e_lower e_upper c_mean
## 1: Strategy 1 Group 1 7.987639 7.596506 8.413369 7.431354
## 2: Strategy 2 Group 1 10.024784 8.394198 11.641163 61002.711551
## 3: Strategy 3 Group 1 8.488105 7.377493 9.699183 60672.101103
## 4: Strategy 1 Group 2 8.001112 7.606094 8.429577 7.419273
## 5: Strategy 2 Group 2 10.485831 8.818575 12.096746 60278.519724
## 6: Strategy 3 Group 2 10.992956 9.872577 12.109598 60416.520516
## c_lower c_upper
## 1: 5.997779 9.053939
## 2: 44826.259625 80333.079232
## 3: 45009.810292 80909.093872
## 4: 5.979694 8.950915
## 5: 44259.086716 79731.517384
## 6: 44071.994831 80467.355792
```

In addition, if the user would like to examine outcomes other than those specified this summary table, then they can generate a custom table of summary output. The custom table can contain any outcomes as long as they are specified in addition to the `sim`

, `strategy`

, `e`

, and `c`

columns in the posterior distribution data table. The default is to estimate means, the 2.5% quantile, and the 97.5% quantile for each variable, but any custom function can used. Below, we create a hypothetical variable for life-years and create a table summarizing our estimates of costs, QALYs and life-years. A custom function, identical to the default option, is entered into the function for illustrative purposes.

```
ce <- ce[, lys := qalys * 1.5]
cea.fun <- function(x) list(mean = mean(x), quant = quantile(x, c(.025, .975)))
icea.custom.dt <- icea(ce, k = seq(0, ktop, 500), sim = "sim", strategy = "strategy",
grp = "grp", e = "qalys", c = "cost",
custom_vars = c("cost", "lys", "qalys"),
custom_fun = cea.fun)
```

`icea.custom.dt$summary`

```
## strategy grp e_mean e_lower e_upper c_mean
## 1: Strategy 1 Group 1 7.987639 7.596506 8.413369 7.431354
## 2: Strategy 2 Group 1 10.024784 8.394198 11.641163 61002.711551
## 3: Strategy 3 Group 1 8.488105 7.377493 9.699183 60672.101103
## 4: Strategy 1 Group 2 8.001112 7.606094 8.429577 7.419273
## 5: Strategy 2 Group 2 10.485831 8.818575 12.096746 60278.519724
## 6: Strategy 3 Group 2 10.992956 9.872577 12.109598 60416.520516
## c_lower c_upper
## 1: 5.997779 9.053939
## 2: 44826.259625 80333.079232
## 3: 45009.810292 80909.093872
## 4: 5.979694 8.950915
## 5: 44259.086716 79731.517384
## 6: 44071.994831 80467.355792
```

`icea.custom.dt$custom.table`

```
## strategy grp cost.mean cost.quant.2.5% cost.quant.97.5%
## 1: Strategy 1 Group 1 7.431354 5.997779 9.053939
## 2: Strategy 2 Group 1 61002.711551 44826.259625 80333.079232
## 3: Strategy 3 Group 1 60672.101103 45009.810292 80909.093872
## 4: Strategy 1 Group 2 7.419273 5.979694 8.950915
## 5: Strategy 2 Group 2 60278.519724 44259.086716 79731.517384
## 6: Strategy 3 Group 2 60416.520516 44071.994831 80467.355792
## lys.mean lys.quant.2.5% lys.quant.97.5% qalys.mean qalys.quant.2.5%
## 1: 11.98146 11.39476 12.62005 7.987639 7.596506
## 2: 15.03718 12.59130 17.46174 10.024784 8.394198
## 3: 12.73216 11.06624 14.54877 8.488105 7.377493
## 4: 12.00167 11.40914 12.64437 8.001112 7.606094
## 5: 15.72875 13.22786 18.14512 10.485831 8.818575
## 6: 16.48943 14.80887 18.16440 10.992956 9.872577
## qalys.quant.97.5%
## 1: 8.413369
## 2: 11.641163
## 3: 9.699183
## 4: 8.429577
## 5: 12.096746
## 6: 12.109598
```

The cost-effectiveness plane plots the incremental effectiveness of a treatment strategy (relative to a comparator) against the incremental cost of the treatment strategy. The plot is useful because it demonstrates both the uncertainty and the magnitude of the estimates. Each point on the plot is from a particular random draw from the PSA.

Data for plotting a cost-effectiveness plane comes from the `delta`

output generated from the `icea_pw`

function, which, for each sampled parameter set and treatment strategy, estimates differences in costs, effectiveness, and any other variables specified in `custom_vars`

relative to the comparator. The dotted line in the plot is the willingness to pay line, with slope equal to the value of \(k\). For a given \(k\), points below the line are cost-effective while those above it are not.

`head(icea.pw.dt$delta)`

```
## sim strategy grp ie ic
## 1: 1 Strategy 2 Group 1 1.6539256 68490.78
## 2: 2 Strategy 2 Group 1 2.8073821 75123.02
## 3: 3 Strategy 2 Group 1 3.1234878 59306.02
## 4: 4 Strategy 2 Group 1 2.7781977 69901.47
## 5: 5 Strategy 2 Group 1 0.9416388 59249.46
## 6: 6 Strategy 2 Group 1 2.3958306 55574.05
```

```
ylim <- max(icea.pw.dt$delta[, ic]) * 1.1
xlim <- ceiling(max(icea.pw.dt$delta[, ie]) * 1.1)
ggplot(icea.pw.dt$delta, aes(x = ie, y = ic, col = factor(strategy))) +
geom_jitter(size = .5) + facet_wrap(~grp) +
xlab("Incremental QALYs") + ylab("Incremental cost") +
scale_y_continuous(label = dollar, limits = c(-ylim, ylim)) +
scale_x_continuous(limits = c(-xlim, xlim), breaks = seq(-6, 6, 2)) +
theme(legend.position = "bottom") + scale_colour_discrete(name = "Strategy") +
geom_abline(slope = 150000, linetype = "dashed") +
geom_hline(yintercept = 0) + geom_vline(xintercept = 0)
```

The cost-effectiveness acceptability curve (CEAC) is similar to the MCE plot. The difference is that the CEAC compares each strategy to a single comparator whereas the MCE plot considers all strategies simultaneously. Output to produce a CEAC is generated from the `icea_pw`

function.

The plot shows that, in subgroup 1, Strategy 2 has larger NMBs than Strategy 1 with very high probability for reasonable values of \(k\). Strategy 3 also has higher NMBs than Strategy 1 with probability over 1/2 for values of \(k\) larger than 124,000. In group 2, both Strategy 2 and Strategy 3 have higher NMBs than Strategy 1 for almost all values of \(k\), although this probability is larger for Strategy 2 than Strategy 3 when \(k\) is smaller.

```
ggplot(icea.pw.dt$ceac, aes(x = k, y = prob, col = factor(strategy))) +
geom_line() + facet_wrap(~grp) + xlab("Willingess to pay") +
ylab("Probability most cost-effective") +
scale_x_continuous(breaks = seq(0, ktop, 100000), label = comma) +
theme(legend.position = "bottom") + scale_colour_discrete(name = "Strategy")
```

Similar to the `icea`

function, `icea_pw`

produces means, 2.5% quantiles, and 97.5% quantiles for incremental costs and incremental efficacy. The table also contains the ICER, which is equal to expected incremental costs divided by the measure of expected incremental efficacy.

`print(icea.pw.dt$summary)`

```
## strategy grp ie_mean ie_lower ie_upper ic_mean ic_lower
## 1: Strategy 2 Group 1 2.0371452 0.3651429 3.722450 60995.28 44819.43
## 2: Strategy 3 Group 1 0.5004657 -0.6702471 1.767840 60664.67 45002.15
## 3: Strategy 2 Group 2 2.4847190 0.7746857 4.133966 60271.10 44252.01
## 4: Strategy 3 Group 2 2.9918436 1.8228131 4.124085 60409.10 44064.14
## ic_upper icer
## 1: 80325.92 29941.55
## 2: 80901.99 121216.43
## 3: 79722.80 24256.71
## 4: 80459.51 20191.26
```

Again similar to the `icea`

function, the user can also estimate incremental effects for outcome variables not included in the summary table.

The previous analyses allow NMBs and optimal treatment decisions to vary by subgroup. In contrast, most CEAs estimate the treatment, \(j^{*}\), that is optimal when averaging NMBs over the entire population. In particular, if the population is broken up into \(G\) distinct subgroups, the optimal treatment is given by,

\[ \begin{aligned} j^{*} = \text{argmax}_j \sum_{g=1}^{G} w_g E_{\theta}\left[NMB_g(j,\theta)\right]. \end{aligned} \]

Basu and Meltzer (2007) have shown that selecting subgroup specific treatments increases expected net benefits relative to this one-size fits all approach. They refer to additional net benefit as the expected value of individualized care (EPIC), which can be computed in terms of NMBs using the subgroup approach illustrated here as,

\[ \begin{aligned} \sum_{g=1}^G w_g E_{\theta}\left[NMB_g(j^{*}_s,\theta)\right] - \sum_{g=1}^G w_g E_{\theta}\left[NMB_g(j^{*},\theta)\right]. \end{aligned} \]

We can estimate the value of individualized care as follows:

```
ce <- merge(ce, w.dt, by = "grp")
totenmb <- ce[, .(totenmb = weighted.mean(nmb, w = w)), by = c("strategy")]
```

```
ptenmb.grp.max <- apply(as.matrix(enmb[, -1]), 2, max)
ptenmb.max <- sum(ptenmb.grp.max * w.dt$w)
tenmb.max <- max(totenmb$totenmb)
tnmb <- c(ptenmb.max, tenmb.max)
names(tnmb) <- c("Personalized total TENMB", "One-size fits all TENMB")
```

```
evic <- tnmb[1] - tnmb[2]
names(evic) <- "EVIC"
print(evic)
```

```
## EVIC
## 56948.02
```

`print(evic/150000)`

```
## EVIC
## 0.3796535
```

Our estimate of the EVIC is $56,948, or in terms of net health benefits, 0.38 QALYs.

Baio, Gianluca. 2012. *Bayesian Methods in Health Economics*. CRC Press.

Baio, Gianluca, and A Philip Dawid. 2015. “Probabilistic Sensitivity Analysis in Health Economics.” *Statistical Methods in Medical Research* 24 (6). SAGE Publications Sage UK: London, England: 615–34.

Basu, Anirban, and David Meltzer. 2007. “Value of Information on Preference Heterogeneity and Individualized Care.” *Medical Decision Making* 27 (2). Sage Publications: 112–27.

Espinoza, Manuel A, Andrea Manca, Karl Claxton, and Mark J Sculpher. 2014. “The Value of Heterogeneity for Cost-Effectiveness Subgroup Analysis: Conceptual Framework and Application.” *Medical Decision Making* 34 (8). Sage Publications Sage CA: Los Angeles, CA: 951–64.