Computes the generator \(Q\) of a continuous time Markov
chain whose transition matrix over a period of length t is P, as the
matrix logarithm \(Q = \log(P) / t\), so that
\(\exp(t Q) = P\).
Arguments
- P
A transition matrix (rows summing to one) over a period of length
t.- t
Length of the period, a positive number.
- method
Method used: only
"logarithm", the principal matrix logarithm computed byexpm::logm(), is available.
Details
Not every transition matrix is the transition matrix of a
continuous time chain (the embedding problem): the matrix returned is a
valid generator only if its off-diagonal entries are non-negative, which
is not checked. freq2Generator() gives regularized estimates that are
always valid generators.
See also
Other continuous time Markov chains:
ExpectedTime(),
ctmcFit(),
freq2Generator(),
generatorToTransitionMatrix(),
impreciseProbabilityatT(),
is.CTMCirreducible(),
is.TimeReversible(),
probabilityatT(),
rctmc()