meanSojournTimes {smmR} | R Documentation |
Mean Sojourn Times Function
Description
The mean sojourn time is the mean time spent in each state.
Usage
meanSojournTimes(x, states = x$states, klim = 10000)
Arguments
x |
An object of S3 class |
states |
Vector giving the states for which the mean sojourn time
should be computed. |
klim |
Optional. The time horizon used to approximate the series in the
computation of the mean sojourn times vector |
Details
Consider a system (or a component) whose possible
states during its evolution in time are
.
We are interested in investigating the mean sojourn times of a
discrete-time semi-Markov system . Consequently, we suppose
that the evolution in time of the system is governed by an E-state space
semi-Markov chain
. The state of the system is given
at each instant
by
: the event
.
Let denote the successive time points when
state changes in
occur and let also
denote the successively visited states at
these time points.
The mean sojourn times vector is defined as follows:
Value
A vector of length giving the values of the
mean sojourn times for each state
.