Bind data to the statespace representation
endog (array) – Endogenous data to bind to the model. Must be column-ordered ndarray with shape ( |
The strict requirements arise because the underlying statespace and Kalman filtering classes require Fortran-ordered arrays in the wide format (shaped (
nobs)), and this structure is setup to prevent copying arrays in memory.
By default, numpy arrays are row (C)-ordered and most time series are represented in the long format (with time on the 0-th axis). In this case, no copying or re-ordering needs to be performed, instead the array can simply be transposed to get it in the right order and shape.
Although this class (Representation) has stringent
bind requirements, it is assumed that it will rarely be used directly.
© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.