| get.qy | R Documentation |
For a partition E = U \cup D of the state
space into up states U (upstates) and down states D, computes
the semi-Markov kernel q_Y of the chain
(Y_k)_{k \in \mathbb{N}} which coincides with the
semi-Markov chain (Z_k)_{k \in \mathbb{N}} up to the
first passage time T_D to D, and which is then absorbed in a
state \Delta gathering the states of D (Barbu and
Limnios, 2008, Proposition 5.1 and its second proof, pp. 105-106):
q_Y(k) = \left(\begin{array}{cc} q_{11}(k) & q_{12}(k)\, \mathbf{1}_{s - s_1} \\ \mathbf{0} & 0 \end{array}\right),
where q_{11} and q_{12} are the blocks
U \times U and U \times D of the kernel q,
s = \textrm{card}(E), s_1 = \textrm{card}(U)
and \mathbf{1}_{s - s_1} is a column vector of ones.
get.qy(x, k, upstates = x$states)
x |
An object of S3 class |
k |
A positive integer giving the time horizon. |
upstates |
Vector giving the subset of operational states |
Notation (see smmR-package for the complete description of the
models): (Z_k)_{k \in \mathbb{N}} is the semi-Markov
chain, q its kernel, E = U \cup D the partition into
up and down states, s_1 = \textrm{card}(U) and T_D the
first passage time to D.
The chain (Y_k)_{k \in \mathbb{N}} is used to
compute the reliability of the system: T_D > k if and only if
Y_k \neq \Delta (see get.Py and reliability). The
rows and columns of q_Y are the up states, in the order of
x$states (not of upstates), followed by \Delta.
A numeric array of dimension (s_1 + 1, s_1 + 1, k + 1), where
s_1 = \textrm{card}(U) is the number of up states,
whose slice l + 1 is the matrix q_Y(l), for
l = 0, \dots, k.
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.
get.kernel, get.Py, reliability, failureRate
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)
# Up states "a" and "b", down state "c" (gathered in Delta)
qy <- get.qy(x, k = 10, upstates = c("a", "b"))
qy[, , 3] # q_Y(2): rows/columns "a", "b", Delta
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.