VARData#
- class impulso.data.VARData(*, endog, endog_names, exog=None, exog_names=None, index)[source]#
Bases:
ImpulsoBaseModelImmutable, validated container for VAR estimation data.
- Parameters:
- endog#
Endogenous variable array of shape (T, n) where T >= 1 and n >= 2.
- Type:
- exog#
Optional exogenous variable array of shape (T, k).
- Type:
numpy.ndarray | None
- index#
DatetimeIndex of length T.
- Type:
- classmethod from_df(df, endog, exog=None)[source]#
Construct VARData from a pandas DataFrame.
- Parameters:
- Returns:
Validated VARData instance.
- Return type:
- model_config = {'arbitrary_types_allowed': True, 'frozen': True}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].