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

Result of `Spatex.Regression.ml_error_re/4` (`spreg.ML_ErrorRE`): a spatial error panel with
random effects, `y = X b + mu_i + u`, `u = lambda W u + e`.

  * `betas`, `vm`, `std_err`, `z_stat` - `"CONSTANT"`, the slopes, `lambda` and `sigma2_u`
    (spreg's order, see `name_x`); `vm` has the slopes' block `sig2 (X*' X*)^-1` and the
    `lambda` / `phi` block of spreg's information matrix (`vm1[:2, :2]`; its second entry is
    the variance of `phi`, not of `sigma2_u`), with zero cross blocks.
  * `lam` - the spatial error parameter; `phi` - the variance ratio `sigma_u^2 / sigma^2`;
    `sig2` - the residual variance of the filtered model; `sig2_u = phi * sig2`.
  * `logll`, `aic`, `schwarz` - as spreg (`k` is the number of columns of `X`, constant
    included; `lambda` and `phi` are not counted).
  * `u`, `predy` - residuals `y - X b` and fitted values, stacked by period (`n * t` values,
    period 1 first), on the raw data; `e_filtered` - the residuals of the transformed model.
  * `iterations` - objective evaluations of the optimizer.

# `t`

```elixir
@type t() :: %Spatex.Regression.PanelREError{
  aic: term(),
  betas: term(),
  converged: term(),
  e_filtered: term(),
  iterations: term(),
  lam: term(),
  logll: term(),
  n: term(),
  name_x: term(),
  name_y: term(),
  phi: term(),
  predy: term(),
  schwarz: term(),
  sig2: term(),
  sig2_u: term(),
  std_err: term(),
  t: term(),
  time_effects: term(),
  u: term(),
  vm: term(),
  warnings: term(),
  z_stat: term()
}
```

---

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