apaMarkov.HigherOrder.StatePath.Labels.FromStatePath(StatePath, Order)
Excel
=apaMarkov.HigherOrder.StatePath.Labels.FromStatePath(StatePath, Order)Result
Derives the higher-order state path from a state path and an order, returning formatted state labels.
Syntax
StatePath: n x 1 vector containing the state path
Order: order of the new path
Algorithm
Higher-order composite states are constructed from consecutive observations of the original state path, as in apaMarkov.HigherOrder.StatePath.FromStatePath. Formatted labels are returned for the composite states, for example “1-2”, “2-3”, etc.
