The command uses the model without covariates, starts in mild fatigue at time zero, and calculates expected accumulated years in each state between times and . Let be the fatigue state and its fitted generator matrix. For the occupation time of a continuous-time Markov chain,
the expected finite-horizon occupation time is
The first equality follows by interchanging a bounded time integral and expected value, and the second uses the homogeneous continuous-time Markov chain transition matrix. The reported expectations are 7.014800 years mild, 1.724686 years moderate, and 1.260514 years severe. They sum to ten because the person occupies exactly one state at every time. All repeated entries are counted: these are not the lengths of single holding times, the durations until first reaching each state, or the probabilities of occupying the states at year ten. The interpretation of the time limits is also given in the package documentation.
Dividing the expected occupation time of a continuous-time Markov chain by and letting gives
For this is also the almost-sure long-run time fraction, not just the limit of an expectation. The two-state continuous-time Markov chain is irreducible and positive recurrent. Alternatively, a regeneration cycle consists of a mean symptom-free holding time followed by a mean symptomatic holding time; the renewal-reward theorem gives . This agrees with the stationary distribution solving and .
Starting in state 1, if the fraction is zero; if and the patient eventually enters state 2 forever, and the fraction is one. If both rates vanish, the fraction remains zero from this initial state and the quotient is undefined.
Let be the occupation time of a continuous-time Markov chain in the symptoms state. Tonelli theorem permits exchanging the nonnegative integral and expectation. Starting from state 1, put . Then
so
For small the answer is , as expected when onset must first occur. It is between zero and . If , no transition can occur and the answer is zero; the displayed quotient is interpreted separately in that degenerate case.
Let be the probability of returning to after its first departure. Transience means ; in particular . By the Strong Markov property, the number of visits, including the initial visit, has the geometric distribution , . The holding times of these visits are independent variables and are independent of the jump-chain return decisions.
For the total occupation time of a continuous-time Markov chain and , summing over gives
Uniqueness of the Laplace transform identifies
Starting elsewhere adds an atom at zero if the state might never be hit; the purely exponential conclusion uses the specified initial state .
Write for the continuous-time Markov chain and for expected value conditional on . The occupation time of a continuous-time Markov chain in state is the integral of its indicator random variable. By Tonelli theorem,
The interchange is valid because the integrand is nonnegative; indeed the random integral is bounded by .
Integrate the expected Markov-chain entry count density and use the occupation time of a continuous-time Markov chain formula:
Each term is a transition intensity multiplied by the expected exposure time to that transition. This counts every entry, including returns, rather than only the first visit. For countably many states the same nonnegative interchange follows from Tonelli theorem, provided the resulting expected count is finite. The sum excludes .