get.limitDistribution: Limit distribution of a semi-Markov chain

View source: R/allgenerics.R

get.limitDistributionR Documentation

Limit distribution of a semi-Markov chain

Description

Computes the limit distribution \pi of an ergodic semi-Markov chain (Z_k)_{k \in \mathbb{N}}, \pi_j = \lim_{k \to \infty} P(Z_k = j) (Barbu and Limnios, 2008, Definition 3.14 and Proposition 3.9, Equation (3.42), p. 65):

\pi_j = \frac{\nu_j\, m_j}{\sum_{l \in E} \nu_l\, m_l}, \quad j \in E,

where \nu is the stationary distribution of the embedded Markov chain (J_n)_{n \in \mathbb{N}} (transition matrix ptrans) and m_j the mean sojourn time in state j (see meanSojournTimes).

Usage

get.limitDistribution(x, klim = 10000)

Arguments

x

An object of S3 class smm (smmparametric or smmnonparametric) or smmfit (see fitsmm).

klim

Optional. The time horizon used to approximate the series in the computation of the mean sojourn times m (cf. meanSojournTimes).

Details

Notation (see smmR-package for the complete description of the models): (Z_k)_{k \in \mathbb{N}} is the semi-Markov chain, (J_n)_{n \in \mathbb{N}} its embedded Markov chain, m_j the mean sojourn time in j and s = \textrm{card}(E).

The mean sojourn times are computed from the semi-Markov kernel up to time klim (the series are truncated). The limit distribution of a semi-Markov chain is in general different from the stationary distribution \nu of its embedded Markov chain: the states with long sojourns have a larger weight. The Markov renewal chain is assumed aperiodic, irreducible and with finite mean sojourn times (assumptions of Proposition 3.9).

Value

A vector of length s = \textrm{card}(E) giving the values of the limit distribution.

References

V. S. Barbu, N. Limnios. (2008). Semi-Markov Chains and Hidden Semi-Markov Models Toward Applications - Their Use in Reliability and DNA Analysis. New York: Lecture Notes in Statistics, vol. 191, Springer.

See Also

meanSojournTimes, get.P, get.stationaryDistribution

Examples

states <- c("a", "b", "c")
ptrans <- matrix(c(0, 0.6, 0.4,
                   0.5, 0, 0.5,
                   0.7, 0.3, 0), nrow = 3, byrow = TRUE)
param <- matrix(c(0.3, 2, 0.6,
                  NA, NA, 0.8), nrow = 3)
x <- smmparametric(states = states, init = c(1/3, 1/3, 1/3),
                   ptrans = ptrans, type.sojourn = "fi",
                   distr = c("geom", "pois", "dweibull"), param = param)

get.limitDistribution(x)

# Each row of the transition function P(k) tends to the limit distribution
get.P(x, k = 300)[, , 301]


smmR documentation built on Nov. 28, 2026, 1:06 a.m.