The objective of deterministic sensitivity analysis is to assess how model results are sensitive to parameter values. Parameter values are changed through upper and lower bounds, and the results are reported.

Sensitivity analysis is distinct from probabilistic uncertainty analysis: whereas in PSA the objective is to estimate the effect of global uncertainty on model results, in DSA the objective is to assess the sensitivity of results to variations of individual parameters. Both analyses are complementary.

This example uses the HIV drug model defined in `vignette("e-probabilistic", "heemod")`

. See this vignette for an explanation of the model. Note that as in PSA, parameters need to be defined in `define_parameters()`

in order to be modified in a DSA.

In this example we will study the sensitivity of cost to 4 parameters:

`rr`

, the relative risk associated with the new treatment.`cost_zido`

and`cost_lami`

, the drug costs.`dr`

, the discount rate.

Upper and lower values for the paramters are given to `define_dsa()`

.

```
<- define_dsa(
se 4, .6,
rr, .
1500, 3000,
cost_zido, 1500, 3000,
cost_lami,
04, .08
dr, . )
```

We then run the sensitivity analysis with `run_dsa()`

, using `res_mod`

the result from `run_model()`

as input.

```
<- run_dsa(
res_dsa model = res_mod,
dsa = se
)
```

All the results can be displayed in a table.

` res_dsa`

Two distinct plot types are available. The basic plot (`type = "simple"`

) displays cost variations for each model, around the base cost.

As expected `mono`

model costs are not senstive to `cost_lami`

, since this drug was not given to this group. Similarly it is not sensitive to `rr`

, because this parameters only modifies transition probabilities in the other model.

```
plot(res_dsa,
strategy = "mono",
result = "cost",
type = "simple")
```

On the other hand the `comb`

model cost is sensitive to all 4 parameters.

```
plot(res_dsa,
strategy = "comb",
result = "cost",
type = "simple")
```

And its effectiveness is sensitive to `rr`

```
plot(res_dsa,
strategy = "comb",
result = "effect",
type = "simple")
```

The difference plot (`type = "difference"`

) displays the difference between the specified model `comb`

and the reference model `mono`

.

```
plot(res_dsa,
strategy = "comb",
result = "cost",
type = "difference")
plot(res_dsa,
strategy = "comb",
result = "icer",
type = "difference")
```

It is also possible to leave the high and low parameter values off the plot:

```
plot(res_dsa,
strategy = "comb",
result = "icer",
type = "difference",
limits_by_bars = FALSE)
```