Spatex.Regression.ThreeSLS (Spatex v0.2.1)

Copy Markdown View Source

Result of Spatex.Regression.three_sls/5 (spreg.ThreeSLS): three-stage least squares for a system of equations with endogenous regressors.

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 and endogenous).
  • b_2sls, residuals_2sls - the equation-by-equation 2SLS coefficients and residuals that start the estimation.
  • b_3sls - the 3SLS coefficients (constant, exogenous, then endogenous); 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.
  • residuals, predicted - one list of n values per equation (from the 3SLS coefficients and the observed endogenous variables).
  • name_y, name_x, name_yend, name_q - names, per equation (name_x starts with "Constant_<eq>").

Summary

Types

t()

@type t() :: %Spatex.Regression.ThreeSLS{
  b_2sls: term(),
  b_3sls: term(),
  chow: term(),
  corr: 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(),
  sig: term(),
  tsls_inf: term(),
  varb: term(),
  warnings: term()
}