# `Spatex.Regression.GMComboRegimes`
[🔗](https://github.com/CountlinkX-Solutions/spatex/blob/v0.2.1/lib/spatex/regression/gm_error_regimes.ex#L84)

Result of `Spatex.Regression.gm_combo_regimes/5` (`spreg.GM_Combo_Regimes`, and the `_Het_` /
`_Hom_` classes with `estimator: :het` / `:hom`).

As `Spatex.Regression.GMErrorRegimes`, with `W y` among the endogenous columns:

  * `betas` - the `rho` coefficient (`"_Global_W_<y>"`, or one `"<regime>_W_<y>"` per regime
    with `regime_lag_sep`) follows the endogenous columns, `lambda` is last. `name_yend` ends
    with the `W y` name(s), `name_q` includes the spatially lagged instruments.
  * `rho` - the `W y` coefficient (`:pooled`; `nil` in `:separate` mode); `rhos` - with
    `regime_lag_sep`, a map by regime label, otherwise `nil`. `lam`, `lams` as in the error
    model.
  * `predy_e`, `e_pred` - reduced-form prediction `(I - rho W)^-1 X beta` and its residual
    (zeros for a regime whose `|rho| >= 1`); `pr2_e` - squared correlation of `y` with `predy_e`
    (`:pooled`; `nil` when `|rho| >= 1`).
  * `regime_lag_sep` - one coefficient of `W y` per regime, every regime fitted on its own
    subgraph (`:separate`, `multi` holds the `Spatex.Regression.GMCombo` fits). spreg ties
    `regime_err_sep` to it: either one switches the other on, and with
    `regime_lag_sep: false` `regime_err_sep` is switched off with a warning.
  * `w_lags`, `lag_q`, `warnings`; `estimator`, `iteration`, `iter_stop`, `step1c`, `max_iter`,
    `epsilon`, `a1`, `lambdas` as in `Spatex.Regression.GMErrorRegimes`.

# `t`

```elixir
@type t() :: %Spatex.Regression.GMComboRegimes{
  a1: term(),
  betas: term(),
  chow: term(),
  cols2regi: term(),
  constant_regi: term(),
  e_filtered: term(),
  e_pred: term(),
  epsilon: term(),
  estimator: term(),
  iter_stop: term(),
  iteration: term(),
  kf: term(),
  kr: term(),
  kryd: term(),
  lag_q: term(),
  lam: term(),
  lambdas: term(),
  lams: term(),
  max_iter: term(),
  mode: term(),
  multi: term(),
  n: term(),
  name_q: term(),
  name_x: term(),
  name_y: term(),
  name_yend: term(),
  names: term(),
  nr: 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(),
  sig2: term(),
  std_err: term(),
  step1c: term(),
  u: term(),
  vm: term(),
  w_lags: term(),
  warnings: term(),
  z_stat: term()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
