Spatex.Regression.GMLagRegimes (Spatex v0.2.1)

Copy Markdown View Source

Result of Spatex.Regression.gm_lag_regimes/5 (spreg.GM_Lag_Regimes).

  • betas, vm, std_err, z_stat ([{z, p}]) - coefficients in names order. In :pooled mode this is spreg's layout: the regime-specific exogenous columns of every regime in turn ("<regime>_<name>"), the global exogenous ones ("_Global_<name>"), then the same for the endogenous columns with W y last ("_Global_W_<y>", or one "<regime>_W_<y>" per regime with regime_lag_sep). In :separate mode every regime's [constant, x..., yend..., W y] block follows the previous one.
  • name_x, name_yend, name_q - names as spreg lists them (name_yend ends with the W y name, name_q includes the spatially lagged instruments). kr, kf, kryd, nr - regime-specific columns per regime (exogenous plus endogenous, W y included under regime_lag_sep), global columns, regime-specific endogenous columns, and regimes; regimes - the labels in order.
  • rho - the spatial lag coefficient: the single W y coefficient, or with regime_lag_sep the last regime's (as spreg's rho attribute); rhos - with regime_lag_sep, a map of the coefficient by regime label, otherwise nil.
  • chow - %{joint: {wald, p}, regi: [{name, wald, p}]}: Wald tests that the coefficients are equal across regimes, jointly and per regime-specific column.
  • u, predy - residuals and fitted values; predy_e, e_pred - reduced-form prediction (I - rho W)^-1 X beta and its residual (zeros for a regime whose |rho| >= 1).
  • pr2, pr2_e - squared correlations of y with predy and predy_e (:pooled mode; pr2_e is nil when |rho| >= 1); ak_test - Anselin-Kelejian test {statistic, p} (:pooled mode; nil with spat_diag: false or robust: :hac); sp_multipliers, impacts, power_terms - as in Spatex.Regression.GMLag, for the non-constant exogenous coefficients (:pooled mode). In :separate mode these live in the per-regime fits.
  • mode - :separate (one Spatex.Regression.GMLag per regime on the regime's subgraph, in multi by regime label) or :pooled (one 2SLS on the regime design, tsls holds the Spatex.Regression.TSLS fit).
  • cols2regi - the flags over the x then yend columns (without the W y flag); constant_regi, regime_lag_sep, regime_err_sep (as used after spreg's reconciliation of the two), robust, w_lags, lag_q, warnings.

Summary

Types

t()

@type t() :: %Spatex.Regression.GMLagRegimes{
  ak_test: term(),
  betas: term(),
  chow: term(),
  cols2regi: term(),
  constant_regi: term(),
  e_pred: term(),
  impacts: term(),
  kf: term(),
  kr: term(),
  kryd: term(),
  lag_q: term(),
  mode: term(),
  multi: term(),
  n: term(),
  name_q: term(),
  name_x: term(),
  name_y: term(),
  name_yend: term(),
  names: term(),
  nr: term(),
  power_terms: term(),
  pr2: term(),
  pr2_e: term(),
  predy: term(),
  predy_e: term(),
  regime_err_sep: term(),
  regime_lag_sep: term(),
  regimes: term(),
  rho: term(),
  rhos: term(),
  robust: term(),
  sp_multipliers: term(),
  std_err: term(),
  tsls: term(),
  u: term(),
  vm: term(),
  w_lags: term(),
  warnings: term(),
  z_stat: term()
}