Spatex.Regression.PanelFE (Spatex v0.2.1)

Copy Markdown View Source

Result of Spatex.Regression.ml_lag_fe/4 and ml_error_fe/4 (spreg.ML_LagFE, spreg.ML_ErrorFE): a spatial panel with individual fixed effects.

  • model - :lag (y = rho W y + X b + mu_i + e) or :error (y = X b + mu_i + u, u = lambda W u + e); rho / lam the spatial parameter.
  • betas, vm, std_err, z_stat - the slopes followed by rho / lam (vm1 adds sigma^2); there is no intercept, the fixed effects absorb it.
  • fixed_effects - the n individual effects mu_i estimated from the area means; mean_fixed_effects their mean.
  • logll, aic, schwarz, sig2 - as spreg (:lag counts rho in k, :error does not count lam).
  • u, predy (and predy_e, e_pred for :lag, e_filtered for :error) - stacked by period on the demeaned data: n * t values, period 1 first.
  • sp_multipliers, impacts - for :lag, as in Spatex.Regression.ml_lag/4.

Summary

Types

t()

@type t() :: %Spatex.Regression.PanelFE{
  aic: term(),
  betas: term(),
  converged: term(),
  e_filtered: term(),
  e_pred: term(),
  fixed_effects: term(),
  impacts: term(),
  iterations: term(),
  lam: term(),
  logll: term(),
  mean_fixed_effects: term(),
  model: term(),
  n: term(),
  name_x: term(),
  name_y: term(),
  predy: term(),
  predy_e: term(),
  rho: term(),
  schwarz: term(),
  sig2: term(),
  sp_multipliers: term(),
  std_err: term(),
  t: term(),
  time_effects: term(),
  u: term(),
  vm: term(),
  vm1: term(),
  warnings: term(),
  z_stat: term()
}