A hypothetical country of 100,000 / 20 years / R // 2026

When the best buy is to buy nothing.

A country with endemic dengue can vaccinate, test before it vaccinates, control mosquitoes, or do nothing beyond routine care. I rebuilt a university coursework model in R to ask which of six strategies is worth its cost over 20 years, and which assumptions could change the answer.

Six panels, one for each strategy, showing the number of infected people in the model over time. With no intervention, epidemics of a similar size return every few years. Vaccination lowers the peaks a little. Vector control holds infection close to zero for several years, and is then followed by larger rebound epidemics.
What the country will pay to avert one DALY
$5,000
What the cheapest step costs per DALY averted
$8,966
Changed assumptions that left the answer alone
24 of 31

Chapter 1

The question

A disease that is more dangerous the second time, a vaccine with a catch, and a health ministry with a fixed price for a year of healthy life.

01 Worse the second time
Dengue is spread by mosquitoes. The model has two serotypes, which are versions of the virus. A first infection rarely turns into the severe form, dengue haemorrhagic fever (DHF): 0.2% of cases. A second infection, with the other serotype, does so in 4%.
02 A vaccine with a catch
In the model the vaccine acts like a first infection. It protects people who have already had dengue. In people who have not, it makes their first natural infection as risky as a second one. So one strategy tests people first, and vaccinates only those with a previous infection.
03 Six strategies
Do nothing beyond routine care. Vaccinate 2,000 or 4,000 randomly chosen people a year. Test 4,000 a year and vaccinate those previously infected. Run a vector-control programme against mosquitoes. Or run vector control and test-and-vaccinate together.
04 Money and health
For each strategy I count what the Ministry of Health pays for doses, tests, care and the programme, and the health lost to dengue, over 20 years. Both are discounted at 3% a year, so that later years count for less.
DALY
A disability-adjusted life year: one year of healthy life lost, to illness or to early death. Here a year spent infected counts as 0.2 of a DALY, and a death from DHF as 40 years of life lost, before discounting.
Willingness to pay
The most the country will pay to avert one DALY. The worksheet sets it at $5,000, the country’s income per person.
Net benefit
The DALYs a strategy averts, valued at the willingness to pay, minus its extra cost. Above zero, the strategy is worth buying.
Dominated
A strategy is dominated if another gives more health for less money. It is extendedly dominated if a mix of two others would.
Draw
One set of values for the uncertain inputs: the mosquito population, the recovery rate and the unit costs. Every strategy is run on the same 1,000 draws.

Chapter 2

The answer

At the price the country will pay, none of the five programmes is worth its cost. How far each one falls short is very different.

2.1 / Cost against health gained

More health, at what price?

Every programme prevents disease, and every programme costs more than doing nothing. The question is the exchange rate. Pick a strategy to see what it buys over 20 years and how that compares with what the country is willing to pay.

Strategy

A point below the dashed line would cost less than $5,000 for each DALY averted. None does. The solid line is the efficient frontier: the strategies that give the most health for each level of spending.

Extra cost over 20 years
$2.04M
DALYs averted
228
Net benefit at $5,000
−$0.90M
Severe cases prevented
22%

Vaccinate 4,000 a year is on the efficient frontier, at $8,966 for each extra DALY averted compared with no intervention. It averts 228 DALYs for $2.04M more than no intervention, so at $5,000 per DALY it comes out $0.90M behind.

Saved model results

Extra cost against DALYs averted

Each numbered dot is a strategy compared with no intervention, numbered as in the table. The cross on your choice spans 95% of the draws.

0$2.5M$5M$7.5M$5,000 per DALY1245630200400600healthy years gained (DALYs averted)extra cost

Your choice Other strategies and the frontier

The six strategies over 20 years: means over the draws, costs and DALYs discounted, each compared with no intervention.
No.StrategyInfections preventedSevere cases preventedExtra costDALYs avertedPer extra DALY avertedNet benefit at $5,000
1No intervention (best)–––––reference
2Vaccinate 2,000 a year4%9%$1.10M99extendedly dominated−$0.60M
3Vaccinate 4,000 a year11%22%$2.04M228$8,966−$0.90M
4Test 4,000 a year, vaccinate if previously infected6%21%$2.50M209dominated−$1.46M
5Vector control36%44%$6.01M534$12,947−$3.34M
6Vector control with test-and-vaccinate39%59%$8.48M688$16,006−$5.03M

2.2 / Willingness to pay

How much would you pay?

The answer depends on one number the model cannot supply: what a year of healthy life is worth to the country. The worksheet sets it at $5,000. Move it, and watch the best strategy change and the uncertainty come and go.

Jump to

The net benefit is recalculated in your browser from each strategy’s mean extra cost and DALYs averted. The shares of draws and the value of perfect information are the study’s saved results, every $100.

Best on average
No intervention
Draws in which it is best
100%
Its net benefit
reference
Value of perfect information
$0

At $5,000 per DALY averted, no intervention has the highest expected net benefit: every programme costs more than the health it buys is worth at that price. It is the best choice in 100% of draws.

Saved model results

Share of draws in which each strategy is best

One line per strategy that is ever the best choice. The dashed line is your willingness to pay.

0%50%100%$5,0000$10k$20k$30kwillingness to pay per DALY averted

No intervention Vaccinate 4,000 Vector control Vector control + test Best on average

Chapter 3

What could change it

One assumption changed at a time. Most leave the answer alone. A few prices do not, and neither does one modelling choice.

3.1 / Sensitivity

Change one assumption.

I changed one assumption at a time, 31 times, and asked each time which strategy came out best. Choose a scenario to see every programme’s net benefit under it, against the main analysis.

Some scenarios only change how the same simulations are valued: a price, a discount rate, the number of years counted. Others change the model and run it again. The ranges are illustrative, roughly halving and doubling the coursework’s values, so they show how the decision responds, not how likely each value is.

Best strategy
No intervention
Changes the answer
–
Vaccinate 4,000, net benefit
−$0.90M
Vector control, net benefit
−$3.34M

Main analysis: no intervention has the highest expected net benefit, the study’s main result. Vaccinate 4,000 a year comes to −$0.90M and vector control to −$3.34M against no intervention.

Main analysis

Net benefit against no intervention

A bar to the right of zero is a programme worth its cost. The diamonds mark the main analysis.

−$14M−$12M−$10M−$8M−$6M−$4M−$2M0$2M$4MVaccinate 2,000−$0.60MVaccinate 4,000−$0.90MTest and vaccinate−$1.46MVector control−$3.34MVector control + test−$5.03Mnet benefit at the study’s willingness to pay

Loses money Worth its cost Main analysis

3.2 / Thresholds

How far from breaking even?

A programme breaks even when the health it gains, valued at $5,000 per DALY, exactly pays for its extra cost. For four inputs, I worked out the value at which each programme would get there, with everything else left alone.

Input changed

These are exact, not searched for: net benefit is a straight line in each of these inputs, so the crossing point can be solved directly. Only the programmes an input affects are shown.

Value in the study
$45.05
Break-even value
$30.29
Compared with the study
67%
First to break even
Vaccinate 4,000

Vaccinate 4,000 a year is the first to break even: at $30.29 a dose, 67% of the study’s $45.05.

Saved model results

Break-even value of the input

Each dot is where a programme breaks even, as a multiple of the study’s value (the dashed line). The further from the line, the bigger the change needed.

01×2×3×the study’s valueVaccinate 2,000$25.31Vaccinate 4,000$30.29Test and vaccinate$19.91Vector control + testnone above zeromultiple of the study’s value

First to break even Other programmes

Chapter 4

The limits

The code is tested and reproduces the coursework it came from. The model still has a weakness that decides one result, and one rule I could not settle.

4.1 / Verification

Does the code solve the model?

These checks ask whether the code does what the equations say. None of them shows that the model describes real dengue.

Unit tests23 tests, 0 failingamong them that nobody is created or lost, that vaccination happens at the stated rate, and that the discounting and frontier logic are right

Coursework report reproduced43 of 44 valuesby running the unmodified coursework code again. The miss is the DALYs averted by test-and-vaccinate, printed as 106.70 and re-run as 106.74

This code against the coursework code2.8 × 10⁻⁷the largest relative difference in costs and DALYs when both run the same draws under the same rules

Two panels. Top, on a logarithmic scale: the median number of infected people over time for each strategy. Under vector control it falls far below one person between epidemics and then rebounds. Bottom: infections with and without the fade-out rule. Without vector control they barely change; with vector control they fall to almost none.
Between epidemics

Where the model is fragile.

Between epidemics, vector control pushes the model down to a median low of 0.0022 infected people, with fewer than one infected person on 53% of days. A real outbreak could end there. This one cannot: the model works in averages, so it carries fractions of a person, and the next epidemic grows back from them.

So I ran a variant in which a serotype dies out once fewer than one person and one mosquito carry it. Both serotypes then disappear in 100% of the vector-control draws, infections over 20 years fall from 34,967 to 16, and vector control becomes worth its cost (+$3.79M). Without vector control the variant changes little. A real country, where infection is brought back in from outside, lies somewhere between the two.

4.2 / The study

Behind the model.

This project is built from my University of Warwick coursework. The model structure, the parameter values, the data files (the draws of the uncertain inputs and costs, and the starting state) and the six strategies come from Worksheet 4 of the module Epidemiology by Example and from the coursework I submitted. What I added afterwards is an audit of that coursework, a re-implementation, the verification, the extended analyses (uncertainty, sensitivity, thresholds and the fade-out variant) and the report.

The study

Dengue vaccination and vector control: a cost-effectiveness modelling study

A hypothetical country of 100,000 people · two serotypes · 20 years

The full report

The complete study as I wrote it up: the model, every check, all the results with their intervals, and the limitations.

Full report / web pageRead the reportOpens on its own page

Tools

  • R
  • renv
  • deSolve
  • testthat
  • Quarto

Methods

  • Deterministic two-serotype host–vector model
  • Probabilistic cost-effectiveness analysis
  • Efficient frontier with extended dominance
  • Acceptability curves and value of perfect information
  • One-at-a-time sensitivity and structural scenarios
  • Exact break-even thresholds

What the study found

Within this model.

  • No strategy is worth its cost at $5,000 per DALY. The cheapest step costs $8,966, and doing nothing beyond routine care is the best choice in 100% of draws.
  • Vaccinating 4,000 people a year prevents 22% of severe cases, at a loss. Testing first prevents slightly fewer and costs more.
  • Vector control alone prevents 44% of severe cases, more than any vaccination strategy, but its programme costs 3.4 times the care costs it saves.
  • The answer held in 24 of 31 changed assumptions. A much cheaper vaccine or vector-control programme would change it.
  • Vector control’s result depends on how the model treats an infection that has almost died out.

Nothing here is fitted to data. Everyone in the model mixes evenly, with no seasons, no age groups and no infection arriving from outside. The assumed effects of vector control are coursework choices without a published source, and the sensitivity analysis changes one assumption at a time.