Computes empirical transition counts for the sequences of the first and second member. Rows correspond to dyadic states of the two members, and columns correspond to the state of the first member at the next time point.
Arguments
- chainFM
Numeric vector of integer-valued observed states for the first member (FM). Must have the same length as
chainSM.- chainSM
Numeric vector of integer-valued observed states for the second member (SM). Must have the same length as
chainFM.- states
A single integer >= 2 giving the number of states.
Value
An integer matrix with class
c("dyadic_counts", "matrix", "array"),
with \(states^2\) rows and states columns. It remains usable as an
ordinary matrix. print(), summary(), and utils::toLatex() methods are
available for this result.
