Spatex.Regression.SURlagIV (Spatex v0.2.1)

Copy Markdown View Source

Result of Spatex.Regression.sur_lag_iv/4 (spreg.SURlagIV): seemingly unrelated regressions with a spatial lag of the dependent variable in every equation, estimated by three-stage least squares with the spatially lagged exogenous variables as instruments.

Per-equation fields are lists with one entry per equation, in order.

  • n, n_eq, k - observations, equations and, per equation, the number of coefficients (constant, exogenous, user endogenous and, last, the spatial lag).
  • w_lags - the order of the spatial lags used as instruments.
  • b_2sls, residuals_2sls - the equation-by-equation 2SLS coefficients and residuals that start the estimation.
  • b_3sls - the 3SLS coefficients (constant, exogenous, user endogenous, then the spatial lag coefficient); rho - the spatial lag coefficient of every equation (the last of each); varb - covariance of all coefficients stacked; tsls_inf - per equation, one {std_err, z, p} per coefficient.
  • sig, corr - the cross-equation error covariance (E'E / n of the 2SLS residuals) and its correlation matrix.
  • chow - with the same number of coefficients in every equation, one {stat, df, p} Wald test per coefficient of its equality across equations; nil otherwise.
  • joinrho - with spat_diag: true, the {stat, df, p} Wald test that the spatial lag coefficients of all equations are jointly zero; nil otherwise.
  • residuals, predicted - one list of n values per equation (from the 3SLS coefficients and the observed W y).
  • name_y, name_x, name_yend, name_q - names, per equation (name_x starts with "Constant_<eq>", name_yend ends with "W_<name_y>", name_q lists the user instruments, then the lags of X and, with lag_q, of the user instruments).

Summary

Types

t()

@type t() :: %Spatex.Regression.SURlagIV{
  b_2sls: term(),
  b_3sls: term(),
  chow: term(),
  corr: term(),
  joinrho: term(),
  k: term(),
  n: term(),
  n_eq: term(),
  name_q: term(),
  name_x: term(),
  name_y: term(),
  name_yend: term(),
  predicted: term(),
  residuals: term(),
  residuals_2sls: term(),
  rho: term(),
  sig: term(),
  tsls_inf: term(),
  varb: term(),
  w_lags: term(),
  warnings: term()
}