Spatex.Regression.MLLagRegimes (Spatex v0.2.1)

Copy Markdown View Source

Result of Spatex.Regression.ml_lag_regimes/5 (spreg.ML_Lag_Regimes).

  • betas, vm, std_err, z_stat ([{z, p}]) - coefficients in name_x order. In :pooled mode this is spreg's layout: the regime-specific columns of every regime in turn ("<regime>_<name>"), the global ones ("_Global_<name>") and rho last ("_Global_W_<y>"). In :separate mode every regime's [constant, x..., rho] block follows the previous one and vm is block diagonal.
  • kr, kf, nr - regime-specific columns per regime (rho included in :separate mode), global columns (rho included in :pooled mode, as spreg counts it) and regimes; regimes - the labels in order.
  • rho - the spatial lag coefficient (:pooled mode, nil otherwise); rhos - a map of the coefficient by regime label (:separate mode, nil otherwise).
  • chow - %{joint: {wald, p}, regi: [{name, wald, p}]}: Wald tests that the coefficients are equal across regimes, jointly and per regime-specific column (rho is one more column in :separate mode).
  • vm1 (covariance of the coefficients and sigma^2), logll, aic, schwarz, sig2, utu, pr2, pr2_e (nil when |rho| >= 1), k (coefficients including rho), iterations and converged - as in Spatex.Regression.MLLag, for the :pooled fit; nil in :separate mode, where every regime's Spatex.Regression.MLLag in multi holds them.
  • mean_y, std_y, utu, u, predy, predy_e (reduced form), e_pred - for every observation (utu is the sum of the squared residuals in both modes).
  • sp_multipliers, impacts, power_terms - as in Spatex.Regression.MLLag, with the impacts of the non-constant coefficients (:pooled mode; per regime in multi).
  • mode - :pooled (one ML fit on the regime design, ml holds the Spatex.Regression.MLLag) or :separate (regime_lag_sep: one Spatex.Regression.MLLag per regime on the regime's subgraph, in multi by regime label).
  • method, epsilon, constant_regi, cols2regi, regime_lag_sep, name_x, name_y, warnings.

Summary

Types

t()

@type t() :: %Spatex.Regression.MLLagRegimes{
  aic: term(),
  betas: term(),
  chow: term(),
  cols2regi: term(),
  constant_regi: term(),
  converged: term(),
  e_pred: term(),
  epsilon: term(),
  impacts: term(),
  iterations: term(),
  k: term(),
  kf: term(),
  kr: term(),
  logll: term(),
  mean_y: term(),
  method: term(),
  ml: term(),
  mode: term(),
  multi: term(),
  n: term(),
  name_x: term(),
  name_y: term(),
  nr: term(),
  power_terms: term(),
  pr2: term(),
  pr2_e: term(),
  predy: term(),
  predy_e: term(),
  regime_lag_sep: term(),
  regimes: term(),
  rho: term(),
  rhos: term(),
  schwarz: term(),
  sig2: term(),
  sp_multipliers: term(),
  std_err: term(),
  std_y: term(),
  u: term(),
  utu: term(),
  vm: term(),
  vm1: term(),
  warnings: term(),
  z_stat: term()
}