CointegrationTestResult#
- class impulso.results.CointegrationTestResult(*, rank_trace, rank_max_eigen, det_order, k_ar_diff, alpha, n_obs, eigenvalues, table)[source]#
Bases:
ImpulsoBaseModelResult from the Johansen cointegration rank test.
The Johansen procedure walks a sequence of nulls — rank is at most 0, at most 1, and so on — and stops at the first null it fails to reject. Both the trace and maximum-eigenvalue statistics are reported; they can disagree, and when they do the disagreement is information, not an error.
Only critical values are available for this test, not p-values, so alpha is restricted to the levels tabulated by MacKinnon, Haug and Michelis (1996): 0.10, 0.05, and 0.01.
- Parameters:
- det_order#
Deterministic trend order passed to the test: -1 for no deterministic term, 0 for a constant, 1 for a linear trend.
- Type:
- k_ar_diff#
Number of lagged differences in the vector error-correction model (VECM), i.e. p - 1 for a VAR(p) in levels.
- Type:
- eigenvalues#
Estimated eigenvalues, descending.
- Type:
- table#
One row per null rank r = 0, …, n - 1, indexed by r. Columns are trace_stat, trace_crit, trace_reject, maxeig_stat, maxeig_crit, maxeig_reject.
- Type:
- model_config = {'arbitrary_types_allowed': True, 'frozen': True}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].