Description Usage Arguments Details Value References See Also
This function calculates the 0th, 1st, and 2nd restricted factorial moment matrices of labeled substitution counts for a reversible continuous-time Markov chain (CTMC) model.
1 2 | moments.ctmcjumps(t, rate.mat, label.mat,
root.dist = NULL, scale = FALSE)
|
t |
A nonnegative numeric vector of CTMC time interval lengths. |
rate.mat |
A reversible CTMC rate matrix. |
label.mat |
A 0-1 matrix of the same size as |
root.dist |
A numeric vector defining the CTMC stationary distribution.
This only needs to be specified when |
scale |
A logical indicating whether to scale the time dimension. If
|
The 0th restricted factorial moment matrix of labeled CTMC substitution counts is defined as the CTMC transition probability matrix.
A list with named elements "zeroth", "first", and
"second". Each list element is a three-dimensional array with
dimensions c(nrow(rate.mat), ncol(rate.mat), length(t)). The
"zeroth", "first", and "second" elements of this list
contain the 0th, 1st, and 2nd restricted factorial moment matrices of
labeled CTMC substitution counts, respectively, for the time interval
lengths defined by t.
Minin VN and Suchard MA (2008) “Counting labeled transitions in continuous-time Markov models of evolution”, Journal of Mathematical Biology, 56(3):391-412.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.