ConditionalLevels#

class cultivars.multivariate.reduced_form.vector_autoregression.ConditionalLevels(*, phi, impact, exog_lags, deterministic, names, exog_names)[source]#

One unit’s equations written in levels, ready to be linked.

The common currency of a global system. Units may be estimated as a VARX in levels or as a conditional error-correction model in differences, and those are different objects with different parameters – but both imply the same thing about how the unit’s variables respond to their own past and to the foreign aggregates, and that implication is what the linkage consumes. Converting each unit to this record once means the global solve never learns which estimator produced which unit.

Variables:
  • phi (NDArray[double]) – (p, k, k) coefficients on the unit’s own lagged levels.

  • impact (NDArray[double]) – (k, m) contemporaneous response to the foreign levels.

  • exog_lags (NDArray[double]) – (p, k, m) coefficients on lagged foreign levels, padded to the same depth as phi so the two stack row by row.

  • deterministic (NDArray[double]) – (d, k) deterministic coefficients.

  • names (tuple[str, ...]) – The unit’s own variable labels.

  • exog_names (tuple[str, ...]) – The unit’s foreign-aggregate labels.

Read as an equation, with \(x\) the unit’s \(k\) variables, \(f\) its \(m\) foreign aggregates, and d the deterministic terms:

x_t = sum_l phi[l] x_{t-l} + impact f_t + sum_l exog_lags[l] f_{t-l}
      + deterministic' d_t + u_t

with the lag index \(\ell\) running from one to order.

See also

Attributes#

phi

Coefficients on the unit's own lagged levels, (p, k, k), lag on the leading axis.

impact

Contemporaneous response to the foreign levels, (k, m).

exog_lags

Coefficients on the lagged foreign levels, (p, k, m).

deterministic

Deterministic coefficients, (d, k), one row per deterministic term.

names

Labels of the unit's own variables, length \(k\).

exog_names

Labels of the unit's foreign aggregates, length \(m\).

k_endog

Variables the unit models.

k_exog

Foreign aggregates the unit reads.

order

Lags of the unit's own levels.