MarkovSwitchingSSM.effective_sample#
- MarkovSwitchingSSM.effective_sample(y)[source]#
Split a series into the modelled target and its lag block.
- Parameters:
y (
ArrayLike) – The untrimmed series.- Return type:
- Returns:
A tuple
(target, lags);targetdrops the firstorderobservations andlagsis the(T_eff, p)matrix the conditional means are built from.- Raises:
DimensionError – If the series is not 1-D or is shorter than the autoregressive order.