apaMarkov.StatePath.LabelsAndLocalStates(ConditioningVars, ThresholdVals)
=apaMarkov.StatePath.LabelsAndLocalStates(ConditioningVars, ThresholdVals)Result
Returns the Markov state path labels derived from conditioning variables and threshold values, plus all local states. The first column contains the state label, the following columns the local state of each conditioning variable.
Syntax
ConditioningVars: nObs x nVars matrix of conditioning variables
ThresholdVals: nThresholds x nVars matrix of threshold values, one column per variable. Empty cells are ignored, i.e. the variables can have different numbers of thresholds
Algorithm
For each variable, the thresholds are sorted in ascending order. A variable with k thresholds has k + 1 local states.
Remarks
The number of columns of ThresholdVals must equal the number of conditioning variables.
