Spatex.Regression.SUR (Spatex v0.2.1)

Copy Markdown View Source

Result of Spatex.Regression.sur/3 (spreg.SUR): seemingly unrelated regressions by feasible GLS.

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

  • b_ols, b_sur - OLS and SUR coefficients (the constant first, named "Constant_<eq>" as in spreg); name_x / name_y name them.
  • varb - covariance of all SUR coefficients stacked; sur_inf - per equation, one {std_err, z, p} per coefficient.
  • sig, sig_ols, corr - the error covariance used by the last estimation step, the one of the OLS residuals, and the correlation matrix of sig.
  • llik, ldet_s0, ldet_s1, iterations - log-likelihood, log-determinants of the diagonal OLS covariance and of the last sig, and the FGLS rounds.
  • lr_test, lm_test - {stat, df, p} likelihood-ratio and Breusch-Pagan LM tests of a diagonal error covariance (nil with nonspat_diag: false).
  • chow - with the same number of regressors in every equation, one {stat, df, p} Wald test per coefficient of its equality across equations; nil otherwise.
  • lm_error, lm_lag - {stat, df, p} spatial LM tests with spat_diag: true.
  • residuals, predicted - one list of n values per equation.

Summary

Types

t()

@type t() :: %Spatex.Regression.SUR{
  b_ols: term(),
  b_sur: term(),
  chow: term(),
  corr: term(),
  iterations: term(),
  ldet_s0: term(),
  ldet_s1: term(),
  llik: term(),
  lm_error: term(),
  lm_lag: term(),
  lm_test: term(),
  lr_test: term(),
  n: term(),
  n_eq: term(),
  name_x: term(),
  name_y: term(),
  predicted: term(),
  residuals: term(),
  sig: term(),
  sig_ols: term(),
  sur_inf: term(),
  varb: term(),
  warnings: term()
}