Why the Clock Origin Matters
A transition hazard is always defined relative to a time scale. In a semi-Markov model, the relevant clock for a transition out of a state is often time spent in that state. The clock begins when the person enters the current state, not automatically when they enter the study. Confusing these origins can assign a person the wrong transition hazard and therefore produce incorrect predicted risks.
Consider an illness-death process with states 0 (illness-free), 1 (ill), and 2 (dead), where 2 is absorbing. A person who enters state 1 four years after study entry has spent zero years in state 1 at that moment. At a later study time of six years, that person has spent two years in state 1. If death risk depends on duration of illness, the relevant hazard at that point is evaluated at duration two, not at study time six.
In this tutorial, study time \(t\) runs from study entry, while duration \(u\) resets to zero at entry into the current state. For an illness-death path that begins in state 0 at study entry and enters state 1 at time \(s\), the duration in state 1 at time \(t\geq s\) is \(u=t-s\). A hazard written as a function of \(t\) instead of \(u\) is not automatically wrong: it represents a different assumption, namely dependence on calendar or study time rather than duration in the current state.
Hazards and Risks on the Reset Clock
The transition-specific hazard \(\lambda_{ij}(u)\) is the instantaneous rate of transition from state \(i\) to state \(j\) at duration \(u\), conditional on having remained in state \(i\) up to that duration and on the stated history and covariates. Its units are inverse time. If the process can leave state \(i\) for several destinations, the total exit hazard is the sum of the destination-specific hazards. The probability of still occupying state \(i\) through duration \(u\), conditional on entry into that state, follows from that total hazard.
The risk integral accounts for the fact that a person can make the transition to \(j\) at duration \(v\) only if they have remained in state \(i\) until \(v\). For a single possible exit, \(S_i(u)\) reduces to \(\exp\{-\int_0^u\lambda_{ij}(v)\,dv\}\), and the probability of that exit by duration \(u\) is \(1-S_i(u)\).
For an illness-death path with illness at study time \(s\) and death at time \(t\), the relevant state-1 duration at death is \(t-s\). Under a duration-based model, the path's state-1 contribution to the transition likelihood has the form \(\lambda_{12}(t-s)\exp\{-\int_0^{t-s}\lambda_{12}(v)\,dv\}\). If the person is censored while still ill at duration \(c\), that transition contributes survival through duration \(c\), rather than a death hazard at the censoring time.
Deriving the Risk Calculation
The competing-exit formula follows by considering a short duration interval of width \(du\). Given survival in state \(i\) to duration \(u\), the probability of an exit to \(j\) in that interval is approximately \(\lambda_{ij}(u)\,du\). The probability of reaching \(u\) without leaving state \(i\) is \(S_i(u)\), so the unconditional probability of an exit to \(j\) in that interval is approximately \(S_i(u)\lambda_{ij}(u)\,du\). Summing over small intervals and taking the limit gives the integral above.
For piecewise-constant hazards, the calculation can be done interval by interval. If the hazards for exits \(j\) and \(k\) are constant within an interval of length \(d\), with total hazard \(q=\lambda_{ij}+\lambda_{ik}\), then survival through the interval is \(e^{-qd}\). The probability of exit to \(j\) during it, conditional on being at risk at its start, is \((\lambda_{ij}/q)(1-e^{-qd})\). This follows by integrating \(e^{-qv}\lambda_{ij}\) from \(v=0\) to \(d\).
Worked Example: Death Risk After Illness in an Illness-Death Path
Suppose, hypothetically, a person enters state 1 (ill) at study time \(s=4\) years. The only exit from state 1 is death. Assume the death hazard is \(0.10\) per year for the first two years after illness entry and \(0.30\) per year thereafter. Calculate the probability of death within three years after illness entry, conditional on entering state 1.
The time origin for this calculation is illness entry, so the three-year follow-up interval is \(0\leq u\leq 3\). The cumulative hazard is \(\int_0^3\lambda_{12}(u)\,du=(0.10)(2)+(0.30)(1)=0.50\).
Thus, under these hypothetical hazards, the conditional probability of death within three years after illness entry is about 39.35%. At study time \(t=4\), the person has duration \(u=0\); at study time \(t=7\), the person has duration \(u=3\). The hazard changes after study time \(t=6\), because that is two years after the person entered state 1.
A clock-reset mistake would apply the duration schedule to study time instead: it would treat the hazard as \(0.10\) only up to \(t=2\) and \(0.30\) thereafter. Since this person is already at \(t=4\) when illness begins, the mistaken calculation applies \(0.30\) throughout the next three years, giving \(1-\exp\{-(0.30)(3)\}=0.5934\). That is a risk of 59.34%, not the 39.35% implied by the stated duration-based model.
Competing Exits Must Share the Same Duration Scale
If multiple transitions can leave state \(i\), each cause-specific hazard must be evaluated at the same duration \(u\) for the same person. The total hazard determines the chance of remaining in state \(i\); the cause-specific hazard determines which exit occurs. The following hypothetical calculation includes remission as an additional exit from illness to illustrate the competing-exit arithmetic. It is an extension of the basic illness-death structure, not a required feature of that structure.
Worked Example: Two Possible Exits From Illness
Suppose a person enters state 1 at study time \(s=4\). During the first year in state 1, the death hazard is \(0.08\) per year and the remission hazard is \(0.12\) per year. During the second year, the corresponding hazards are \(0.20\) and \(0.12\) per year. Assume piecewise-constant hazards, no other exits, and no covariate or history variation within this calculation. Find the probability of death by two years after illness entry.
In the first year, the total exit hazard is \(0.08+0.12=0.20\). The probability of death during that year is \((0.08/0.20)(1-e^{-0.20})=0.07251\). Survival in state 1 to duration one is \(e^{-0.20}=0.8187\).
In the second year, the total exit hazard is \(0.20+0.12=0.32\). Conditional on being in state 1 at duration one, the probability of death during that next year is \((0.20/0.32)(1-e^{-0.32})=0.1712\). Multiplying by the probability of reaching that year still in state 1 gives a contribution of \(0.8187(0.1712)=0.1401\).
The hypothetical probability of death by two years after illness entry is about 21.26%. The probability of remission is \((0.12/0.20)(1-e^{-0.20})+0.8187(0.12/0.32)(1-e^{-0.32})\approx0.1929\). The probability of remaining in state 1 at duration two is \(e^{-0.20}e^{-0.32}=e^{-0.52}\approx0.5945\). These probabilities sum to approximately one, as they should: \(0.2126+0.1929+0.5945\approx1.0000\).
The hazards change at duration one, which is study time \(t=5\) for this person. Applying the first-year hazards according to study time instead would place the change at \(t=1\), before the person even entered state 1. The relevant schedule begins at illness entry, not at study entry.
Recognizing and Correcting the Mistake in Data
A practical check is to compute both times explicitly for every transition out of a state. For a person entering illness at study time \(s\), a death at \(t\) has state-1 duration \(t-s\), and censoring at \(c\) has state-1 follow-up duration \(c-s\). A model described as duration-dependent should use those durations to define its hazard and the period at risk.
Worked Example: Reconstructing State Durations
Consider the following hypothetical records. Times are years since study entry. Each person enters state 1 at the listed illness time and then either dies or is censored while ill.
| Person | Illness entry \(s\) | Exit or censoring time | State-1 duration |
|---|---|---|---|
| A | 1 | Death at 4 | 3 years |
| B | 3 | Censored at 6 | 3 years |
| C | 4 | Death at 5 | 1 year |
| D | 2 | Censored at 6 | 4 years |
| E | 5 | Death at 6 | 1 year |
For person C, the state-1 duration at death is \(5-4=1\) year. For person E, it is \(6-5=1\) year, even though the deaths occurred at different study times. If the question concerns the number of deaths at duration one among these records, both C and E had a death at that duration. For a basic duration-scale calculation, all five records provide observation through duration one; two have a death then, so the empirical event fraction at that duration is \(2/5=0.4000\). This fraction is a descriptive calculation, not by itself a full survival estimate: a formal estimator must handle event times, censoring, and risk sets according to its assumptions.
Sorting these deaths only by study time would place C's death at year 5 and E's at year 6, obscuring that both occurred one year after illness entry. Conversely, using duration alone would obscure calendar timing if the process truly depends on calendar time. The time scale must match the scientific model being estimated.
Assumptions, Diagnostics, and Alternatives
A duration-based calculation is appropriate when the modeled hazard is defined as a function of time since entry into the current state, possibly conditional on specified history or covariates. It also requires accurate transition-entry times and correct identification of the current state. For interpreting a fitted hazard as a conditional transition rate, the risk set must consist of individuals still in that state and under observation at the relevant duration. Censoring assumptions must be appropriate for the estimation method; for example, independent censoring conditional on modeled information is commonly required for standard nonparametric or likelihood-based risk estimation.
Diagnostics begin with the data representation: verify that each state-entry time is recorded and that each subsequent transition or censoring time is converted to a nonnegative duration. Plotting or tabulating events by both study time and state duration can reveal whether a purported duration effect was accidentally indexed by study time. Compare records with different entry times: if a duration-specific hazard is intended, individuals at the same duration should be assessed on that duration scale, while any calendar-time effect should be represented separately rather than silently substituted for duration.
A clock reset is not universally correct. A calendar-time model uses \(\lambda_{ij}(t)\) when risk depends on the time origin of the study, calendar date, or another absolute-time scale. An age-time model might instead use attained age. A duration model uses \(\lambda_{ij}(u)\). These answer different questions; the choice is scientific and must be explicit. A model may also include both duration and calendar-time information, but that requires a specification capable of distinguishing their contributions.
Common warning signs include durations that continue increasing across a state transition, a change point applied at the same study time to people who entered the state at different times despite a stated duration effect, and risk sets grouped by study time when the target hazard is duration-specific. A numerical disagreement between duration and calendar-time calculations is not itself proof that one is wrong: it shows that they encode different assumptions. The error is using one clock while interpreting results as if the other had been used.
The duration clock also has limitations. Duration-only hazards may be inadequate if the same time in state has different risks for people with distinct prior histories, or if calendar time affects risk. Conversely, adding history or calendar-time structure without sufficient data can make estimates unstable. The conditional history and time scale therefore need to be stated alongside any transition-risk result.
Check Your Understanding
Answer each question, then compare with the solutions below.
- A person enters illness at study time 2.5 years and dies at study time 5 years. What is the duration in state 1 at death?
- A single-exit state has a constant duration-based hazard of \(0.15\) per year. What is the probability of exit within two years after state entry?
- Why is a cause-specific hazard for an exit not, in general, equal to the probability of that exit by a specified duration?
- When would a hazard indexed by study time, rather than time since state entry, be a reasonable target?
- A model claims that illness-to-death risk changes after one year in the illness state. A person enters illness at study time 6. At what study time does the modeled change occur?
Solutions. (1) The duration is \(5-2.5=2.5\) years. (2) With a single exit, the probability is \(1-e^{-(0.15)(2)}=1-e^{-0.30}\approx0.2592\), or 25.92% within two years after entry. (3) A hazard is an instantaneous rate among those still at risk; the probability over an interval also depends on survival in the state and, with competing exits, on the other cause-specific hazards. (4) Study time is appropriate when the scientific target is tied to the study-time origin or another absolute-time feature, rather than duration in the current state. (5) The change occurs at study time \(6+1=7\) years.