Author-reviewedEvidence: highv1.0.2

Tunnel State

A tunnel state is one of a fixed sequence of one-cycle temporary states in a Markov model, letting risks, costs or utilities vary with time in a state.

Download concept guide
Status
Published, version 1.0.2
Last reviewed
27 Oct 2026, by Dr Darrin Baines
Report a problem
Tell us if something is wrong or out of date

Concept Architecture

Tunnel State for Carrying Time Since an Event Through a Markov Cohort Model

A cohort Markov model knows only which state each share of the cohort is in, so on its own it cannot tell a person one month after a heart attack from a person ten years after one. Tunnel states are the standard way to give a cohort model that missing clock. The need arises from the memoryless property, and the remedy is a chain of one-cycle states built into the transition matrix and a spreadsheet, with the number of states set by how long the duration effect lasts. An illustrative post-myocardial infarction example below compares a tunnel with a single memoryless state, followed by state explosion, the alternatives and common errors.

Why a memoryless model needs tunnels

Under the Markov assumption, Sonnenberg and Beck described the process as having no memory for earlier cycles, so a separate state is needed for each subset of the cohort with a distinct prognosis or utility. The ISPOR-SMDM guidance on state-transition modelling applies this to time spent in the current state. If it matters for transition probabilities, the states should carry that history in their definitions.

Many quantities in economic evaluation depend on time since entry to a state. A risk may be highest soon after an acute event and then fall, as in Sonnenberg and Beck's example of perioperative risk after a myocardial infarction; the cost of a fixed treatment course stops when the course ends. Hawkins, Sculpher and Epstein noted that when transition risks depend on time spent in a treatment state, the Markov assumption can cost the model face validity and give misleading results. A tunnel restores the clock by splitting one clinical state into several states, each standing for a different duration.

How a tunnel works

Sonnenberg and Beck built tunnels from temporary states, which have transitions only to other states and never to themselves, so a person spends at most one cycle in each. A tunnel is an array of temporary states in which each leads onward only to the next (apart from exits such as death), so it can be passed through only in a fixed sequence; its purpose is a temporary adjustment to utility or transition probabilities that lasts more than one cycle. Their example used three tunnel states for the first three months after a myocardial infarction, with successively lower risks of perioperative death, followed by a post-infarction state with a constant risk.

The tutorial by Alarid-Escudero and colleagues describes the same mechanism. The cohort stays in each tunnel state for exactly one cycle and then either leaves the tunnel or moves to the next tunnel state, while the last state of the chain usually keeps some probability of remaining. That last state is the long-term state, where the duration effect has run its course. Each tunnel state can carry its own costs and utilities, so a first-year follow-up cost attaches to the right period.

Building a tunnel into the transition matrix

In the matrix, a tunnel state has a zero on the diagonal, a non-zero entry for the next state in the chain and entries for any exits, such as death. Everything else about the matrix, including the row-sum rule, is unchanged. For a tunnel of KK one-cycle states T1,…,TKT_1, \dots, T_K feeding a long-term state LL, the entries are as follows.

mT1,t+1=∑imi,t pi,T1,mTk+1,t+1=mTk,t sk  (k=1,…,K−1),mL,t+1=mTK,t sK+mL,t sLm_{T_1,t+1} = \sum_{i} m_{i,t} \, p_{i,T_1}, \qquad m_{T_{k+1},t+1} = m_{T_k,t} \, s_k \ \ (k = 1, \dots, K-1), \qquad m_{L,t+1} = m_{T_K,t} \, s_K + m_{L,t} \, s_L

where mj,tm_{j,t} is the proportion of the cohort in state jj at the end of cycle tt, pi,T1p_{i,T_1} is the probability of entering the tunnel from state ii (for example, an infarction while event-free), sks_k is the probability of neither dying nor leaving by another route in the kkth cycle since entry, and sLs_L is the probability of staying in the long-term state. Alarid-Escudero and colleagues count the long-term state as the last tunnel state and give the size of the expanded model as follows.

nS,tunnels=nS+ntunnels−1n_{S,\mathrm{tunnels}} = n_S + n_{\mathrm{tunnels}} - 1

where nSn_S is the number of states before expansion, ntunnelsn_{\mathrm{tunnels}} is the number of states the expanded state is split into, and one is subtracted because they replace the original state; in the notation above, ntunnels=K+1n_{\mathrm{tunnels}} = K + 1. If probabilities also change with age, the tutorial stacks one expanded matrix per cycle into a three-dimensional array.

In a spreadsheet, each tunnel state is a column of the cohort trace. The T1T_1 column collects new entrants, each later tunnel column takes the previous column's value from the row above multiplied by the survival of the previous tunnel state, and the long-term column adds the last tunnel state's survivors to its own. Summing the tunnel columns gives the clinical state for reporting, as the tutorial does, while each column keeps its own cost and utility.

How many tunnel states are needed

The number follows from how long the duration effect lasts, measured in cycles. Alarid-Escudero and colleagues give the rule by example. If a transition rate falls over the first three cycles in a state and is constant from the fourth onward, four states are needed, three one-cycle tunnel states and a long-term state. The effect has to be represented or approximated over a whole number of cycles, so a decline over three years needs three annual tunnel states but 36 monthly ones.

When the evidence is a survival curve for time since entry, the tutorial derives each tunnel probability from the cumulative hazard, assuming a constant rate within each cycle.

pτ=1−exp⁡{−[H(τ)−H(τ−1)]}p_{\tau} = 1 - \exp\{-[H(\tau) - H(\tau - 1)]\}

where pτp_{\tau} is the transition probability in the τ\tauth cycle spent in the state and H(τ)H(\tau) is the cumulative hazard at the end of that cycle, in the tutorial from a Weibull distribution. Taking every tunnel probability from one curve keeps the sequence coherent; in the tutorial's probabilistic sensitivity analysis the Weibull scale and shape were sampled together from a multivariate lognormal distribution. Its duration effect lasted the whole 75-cycle horizon, so one state became 75 tunnel states and the model grew to 78 states.

Time-varying and time-in-state dependence

Tunnel states handle one of the two clocks of time dependency described on the transition matrix and Markov assumption pages, namely time spent in a state, as opposed to time since the model started. Which clock applies decides whether tunnels are needed at all.

The tutorial by Alarid-Escudero and colleagues notes that any time-varying feature of a discrete-time model can be written as tunnel states, and that cycle-specific probabilities are a shortcut for when the whole cohort experiences the change together as a function of time since the start. That gives a simple test. If everyone enters the state at the same moment, time in the state equals model time and cycle-specific matrices are enough; if people enter in different cycles, only tunnel states keep their durations apart.

Worked example of a three-year tunnel after myocardial infarction

The numbers below are illustrative. A cohort of 1,000 people enters just after a myocardial infarction. The annual probability of death is 0.20 in the first year, 0.08 in the second, 0.04 in the third and 0.03 in every later year; recurrent infarction and ageing are left out. The model has three one-year tunnel states (T1 to T3), a long-term state (L) and Dead, the absorbing state.

From \ ToT1T2T3LDead
T100.80000.20
T2000.9200.08
T30000.960.04
L0000.970.03
Dead00001.00

1. Run the tunnel model. The cohort steps along the chain, so 1,000 × 0.80 = 800 reach T2, 800 × 0.92 = 736 reach T3, 736 × 0.96 = 706.56 reach L, then 706.56 × 0.97 = 685.36 and 685.36 × 0.97 = 664.80 remain alive.

End of yearT1T2T3LDead
01,0000000
1080000200
2007360264
3000706.56293.44
4000685.36314.64
5000664.80335.20

2. Build the memoryless alternative. A single post-infarction state needs one annual probability. Calibrating it to the same three-year mortality, 1 − 0.70656 = 0.29344, gives a constant probability.

q=1−(1−0.29344)1/3=1−0.706561/3=1−0.89067=0.10933q = 1 - (1 - 0.29344)^{1/3} = 1 - 0.70656^{1/3} = 1 - 0.89067 = 0.10933

where qq is the constant annual probability of death and 0.70656 is the tunnel model's three-year survival (0.80 × 0.92 × 0.96). Survivors are 890.67, 793.29, 706.56, 629.31 and 560.51 at the end of years 1 to 5.

3. Compare the traces. Deaths each year are 200, 64, 29.44, 21.20 and 20.56 with the tunnel against 109.33, 97.38, 86.73, 77.25 and 68.80 without it. The models agree at three years by construction, yet the memoryless one has too few first-year deaths and too many later. Five-year life years, counted at the end of each cycle, are close, at (800 + 736 + 706.56 + 685.36 + 664.80)/1,000 = 3.593 against (890.67 + 793.29 + 706.56 + 629.31 + 560.51)/1,000 = 3.580. The sign of this small gap depends on the counting convention covered under cohort simulation. Counting at the start of each cycle gives 3.928 against 4.020, and the half-cycle correction gives 3.760 against 3.800. The survival gap then widens; at ten years S10=706.56×0.977=570.89S_{10} = 706.56 \times 0.97^{7} = 570.89 people are alive with the tunnel against S10=1000×0.8906710=314.17S_{10} = 1000 \times 0.89067^{10} = 314.17 without it.

4. Add staggered entry. Now 1,000 people start event-free; each year 5% have an infarction (entering T1) and 1% die. The memoryless version has 3 states (event-free, post-infarction, Dead); splitting the post-infarction state into 4 gives 3 + 4 − 1 = 6 states, as the state-count formula predicts. After four years 146.79 people are post-infarction, with 41.53 in T1, 35.34 in T2, 34.59 in T3 and 35.33 in L. Expected deaths next year are 41.53 × 0.20 + 35.34 × 0.08 + 34.59 × 0.04 + 35.33 × 0.03 = 13.58, an average probability of 0.0925, against 0.20 after one year when all were in T1. The average depends on when people entered (0.094 after four years at 3% incidence, 0.0885 at 10%), so no cycle-specific probability for one post-infarction state fits every strategy, whereas the tunnel tracks it automatically.

5. Interpretation. Matching one summary figure does not make a memoryless state equivalent to a tunnel. The single state misplaces deaths in time, which matters for first-year costs, discounting and any treatment acting soon after the event, and it applies early risk for ever. A full model would add age-specific background mortality from a life table.

State explosion and the alternatives

Tunnels are cheap when one state needs a few and costly when several states need long ones. The ISPOR-SMDM report notes that building history into states can greatly increase their number, which it calls state explosion, and recommends a cohort model when a manageable number of states can include all relevant history and an individual-level model when a valid representation would need an unmanageable number.

Hawkins, Sculpher and Epstein added a time dimension to a Markov model, giving what they called a semi-Markov model; Alarid-Escudero and colleagues describe the approach as a three-dimensional array indexed by current state, next state and time in the current state, and note that adding simulation time as well could need a four-dimensional array. Markov microsimulation keeps each simulated person's history in tracker variables, so time since an event becomes an attribute rather than a state. Discrete event simulation, in the ISPOR-SMDM guidance on that method, lets events occur at any time rather than at fixed intervals and suits problems where what happens next depends on what happened before. Individual-level state-transition models are computationally intensive and more difficult to debug, so a short tunnel remains the simpler choice when a few states carry the history that matters.

Where tunnel states sit among related concepts

Several pages describe the same machinery, and the split between them is deliberate. A tunnel state is a special case of a transient state, and the absorbing state is its opposite extreme. The Markov assumption page sets out the different clocks and ways of retaining history, the transition matrix page holds the rules for the whole matrix, and the cohort simulation page covers running and counting the expanded trace. A single temporary state covers an effect lasting one cycle, and the tutorial shows that a one-off cost at the moment of transition can be handled with transition rewards instead of extra states.

Common errors with tunnel states

Most tunnel errors are routing errors. A tunnel state with a non-zero diagonal lets part of the cohort linger and breaks the clock, and too few tunnel states start the long-term risk too early. Entrants must reach the first tunnel state from every route into the clinical state, and a model must decide whether a repeat event sends people back to the start of the tunnel.

Some limits are structural. The expanded model is still memoryless over its larger set of states, so history not written into the tunnel is lost. Shorter cycles multiply the states needed, and probabilities estimated separately for each tunnel state can form an implausible sequence. Where the duration effect is uncertain, the tunnel design belongs in structural uncertainty analysis.

Sources

  • Alarid-Escudero F, Krijkamp E, Enns EA, Yang A, Hunink MGM, Pechlivanoglou P, Jalal H. A tutorial on time-dependent cohort state-transition models in R using a cost-effectiveness analysis example. Medical Decision Making. 2023;43(1):21-41. https://doi.org/10.1177/0272989X221121747
  • Hawkins N, Sculpher M, Epstein D. Cost-effectiveness analysis of treatments for chronic disease: using R to incorporate time dependency of treatment response. Medical Decision Making. 2005;25(5):511-519. https://doi.org/10.1177/0272989X05280562
  • Karnon J, Stahl J, Brennan A, Caro JJ, Mar J, Möller J. Modeling using discrete event simulation: a report of the ISPOR-SMDM Modeling Good Research Practices Task Force-4. Value in Health. 2012;15(6):821-827. https://doi.org/10.1016/j.jval.2012.04.013
  • Siebert U, Alagoz O, Bayoumi AM, Jahn B, Owens DK, Cohen DJ, Kuntz KM. State-transition modeling: a report of the ISPOR-SMDM Modeling Good Research Practices Task Force-3. Value in Health. 2012;15(6):812-820. https://doi.org/10.1016/j.jval.2012.06.014
  • Sonnenberg FA, Beck JR. Markov models in medical decision making: a practical guide. Medical Decision Making. 1993;13(4):322-338. https://doi.org/10.1177/0272989X9301300409

Media & tools (1)

Tunnel State Interactive Demonstrator

HealthEconomics.wiki interactive demonstrator showing how tunnel states give a cohort Markov model a clock for time spent in a state.

Open tool →

Institutional Perspectives (2)

  • PBAC

    Tunnel States Required for Time-Varying Transition Probabilities

    PBAC's guidelines ask sponsors building a cohort state transition model whether transition probabilities vary with how long individuals have remained in each health state, and state that tunnel states are required to represent such time-varying probabilities. Dependence on events experienced before entering a state can be represented by health states that describe pathways through the model. Individual-level models are reserved for structures that cannot feasibly be run as cohort models, for example where time-varying event rates or the influence of previous events make a cohort model impractical.

    Guidelines for preparing a submission to the Pharmaceutical Benefits Advisory Committee, version 5.0 (September 2016), subsection 3A.2.3View source →
  • NICE Decision Support Unit

    Tunnel States Record Time Since the Last Transition

    TSD 15 notes that state-transition models usually assume future events are independent of past events, which makes it hard to represent risks that depend on time since a previous transition. Replicate states that move the patient on each cycle, sometimes called tunnel states, record the passage of time even when the actual health state does not change. The document warns that only so many replicate states can be added before a cohort Markov model becomes unwieldy, and offers patient-level simulation with history-dependent transition matrices as one solution.

    NICE DSU Technical Support Document 15: Cost-effectiveness modelling using patient-level simulation (Davis, Stevenson, Tappenden and Wailoo, April 2014), section 3.2View source →

Functions & Formulae (3)

m_(t+1) = m_t P_tunnels

Maps a clinical state whose risks, costs or utilities depend on time since entry into a chain of K one-cycle tunnel states followed by a long-term state, so that a cohort model carries time in the state as well as the state itself. The expanded matrix P_tunnels is run with the cohort update s_(t+1) = s_t P of the Markov Model page (HE-FM-MM-001), which is not restated. Three existing records complete the method: tunnel probabilities from a survival curve for time since entry come from the rise in cumulative hazard across each cycle (HE-FM-CUMH-002), with the clock restarting on entry as HE-AS-CUMH-004 notes; the constant probability of a memoryless comparator calibrated to the same three-year survival is the rescaling formula HE-FM-TP-003 (p_old = 0.29344, Delta_old = 3 and Delta_new = 1 give 0.10933, as in the article); and life years from the expanded trace under a counting rule are HE-FM-CSIM-001 and HE-CF-CSIM-001. Notation follows the Tunnel State article.

  • Cohort recursion through a chain of one-cycle tunnel states and a long-term state

    m_(T_1,t+1) = sum_(i=1)^n_S_tunnels [m_(i,t) * p_(i,T_1)]; m_(T_(k+1),t+1) = m_(T_k,t) * s_k; m_(L,t+1) = m_(T_K,t) * s_K + m_(L,t) * s_L

    Moves the cohort one cycle through a tunnel of K one-cycle states T_1 to T_K feeding a long-term state L. New entrants from every state with a route into the tunnel collect in T_1; everyone in T_k who neither dies nor leaves by another route moves to T_(k+1), so no one stays in a tunnel state for a second cycle; survivors of T_K join those who stay in L. These are the tunnel rows of the expanded transition matrix written out, with a zero on each tunnel diagonal. Summing T_1 to L gives the clinical state for reporting, while each column keeps its own cost and utility.

  • Number of states in a cohort model after splitting one state into a tunnel

    n_S_tunnels = n_S + n_tunnels - 1

    Gives the size of the expanded model when one state is replaced by a chain of tunnel states. Following Alarid-Escudero and colleagues, n_tunnels counts every state the original state is split into, including the long-term state, so with K one-cycle tunnel states n_tunnels is K+1. One is subtracted because the tunnel replaces the original state. The expanded transition matrix has n_S_tunnels rows and columns.

  • Average per-cycle death probability across three tunnel states and a long-term state

    q_bar = (m_T1 * q_1 + m_T2 * q_2 + m_T3 * q_3 + m_L * q_L) / (m_T1 + m_T2 + m_T3 + m_L)

    Gives the share of people in a tunnelled clinical state who die in the next cycle, as the occupancy-weighted mean of the probabilities in T1, T2, T3 and L. Here m_T1 to m_L are the values m_(T_k,t) and m_(L,t) of HE-FM-TUN-001 at one cycle, and q_k equals 1 minus s_k when death is the only exit. The average depends on when people entered, which is why a single memoryless state with a cycle-specific probability cannot reproduce a tunnel once entry is staggered. Longer tunnels add one term to each sum for each extra state.

View all formulae

Library

Publications

3
  • Journal article

    Cost-effectiveness analysis of treatments for chronic disease: using R to incorporate time dependency of treatment response — Hawkins N, Sculpher M, Epstein D, Vol. 25, No. 5, pp. 511-519 ed., 2005 (Medical Decision Making)

    Paper on time dependency of treatment response in cost-effectiveness models of chronic disease, warning that the Markov assumption can cost face validity when transition risks depend on time in the treatment state and adding a time dimension to give a semi-Markov model.

  • Journal article

    State-Transition Modeling: A Report of the ISPOR-SMDM Modeling Good Research Practices Task Force-3 — Siebert, Alagoz, Bayoumi, Jahn, Owens, Cohen & Kuntz, Task Force Report 3 ed., 2012 (Value in Health / Medical Decision Making)

    Best-practice guidance for cohort and individual-based state-transition (Markov) models, covering development, analysis, validation and reporting.

  • Journal article

    An Introduction to Markov Modelling for Economic Evaluation — Briggs & Sculpher, Vol. 13, No. 4 ed., 1998 (PharmacoEconomics)

    The foundational tutorial paper introducing Markov (state-transition) models for health economic evaluation, covering health states, cycle length, transition probabilities and the calculation of expected costs and outcomes. Widely cited as the standard entry point to Markov modelling.

Frequently Asked Questions (6)

  • What is a tunnel state?

    A tunnel state is one of a fixed sequence of one-cycle temporary states in a Markov model, letting risks, costs or utilities vary with time in a state.

    Source: Sonnenberg & Beck 1993

  • Why are tunnel states a workaround for memorylessness?

    Because a standard Markov state forgets how long a patient has been in it, a single state cannot represent a risk that changes with time since entry. Tunnel states get around this by replacing that one state with a fixed sequence of temporary states through which a patient must pass in order, one per cycle, each carrying its own transition risk. Which tunnel state a patient is in then records how long they have been there, restoring the missing memory. It is a device to mimic time dependence within a memoryless framework. Briggs and colleagues (2006) describe it.

    Source: Briggs et al. 2006

  • Why are tunnel states used?

    Tunnel states are used to represent time-dependent risk that depends on how long a patient has been in a state, which the standard memoryless Markov model cannot capture, since its transitions depend only on the current state. By splitting a state into a sequence of tunnel states representing successive periods, each with appropriate transition probabilities, the model encodes the elapsed time in the state structure. This lets risks that vary with time since an event, such as high risk soon after a procedure, be represented while keeping the Markov form.

    Source: Sonnenberg & Beck 1993

  • How do tunnel states work?

    Tunnel states work by replacing a single state with a sequence of states through which patients pass one per cycle, each representing a specific period since entering, with its own transition probabilities reflecting the risk at that time. Patients enter the first tunnel state, move to the next each cycle, and can transition out to other states with time-specific probabilities. Because the tunnel state a patient occupies indicates how long they have been in the sequence, elapsed time is captured, approximating time-dependent risk.

    Source: Sonnenberg & Beck 1993

  • When are tunnel states needed?

    Tunnel states are needed when the risk of a transition depends on the time since a patient entered a state, a form of time dependency that violates the memoryless Markov assumption, and when representing this with an individual simulation is not chosen. For example, the risk of complications may be highest just after surgery and fall over time, which a single state cannot capture. Tunnel states let a cohort Markov model represent such time-in-state dependency by encoding elapsed time in a sequence of states.

    Source: Sonnenberg & Beck 1993

  • What are the limitations of tunnel states?

    Tunnel states increase the number of states, since each period since an event requires its own state, which can make the model larger and more complex, and they only approximate time-dependent risk to the resolution of the cycle and the number of tunnel states used. Many periods require many states, adding to data and computational demands and reducing transparency. Where time dependency is extensive, an individual-level simulation that tracks time in state directly may be simpler, so tunnel states suit limited time-dependency within a cohort model.

    Source: Sonnenberg & Beck 1993

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 27 Oct 2026

Content version: 1.0.2

Canonical Identity

Term code
HE-EM-MM-030

Stable URI · Machine-readable · Resolvable · CC BY 4.0

This article is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).

Author: Dr Darrin Baines · Publisher: Intelligent Parameters Ltd · Identifier: https://healtheconomics.wiki/concept/tunnel-state