Spatex.Regression.TSLSRegimes (Spatex v0.2.1)

Copy Markdown View Source

Result of Spatex.Regression.tsls_regimes/6 (spreg.TSLS_Regimes).

  • betas, vm, std_err, z_stat ([{z, p}]) - coefficients in names order. In :pooled mode this is spreg's layout: the regime-specific exogenous columns of every regime in turn ("<regime>_<name>"), the global exogenous ones ("_Global_<name>"), then the same for the endogenous columns, so names == name_x ++ name_yend. In :separate mode every regime's [constant, x..., yend...] block follows the previous one.
  • name_x, name_yend, name_q - names as spreg lists them (the instruments always vary by regime). kr, kf, kryd, nr - regime-specific columns per regime (exogenous plus endogenous), global columns, regime-specific endogenous columns, and regimes; regimes - the labels in order.
  • chow - %{joint: {wald, p}, regi: [{name, wald, p}]}: Wald tests that the coefficients are equal across regimes, jointly and per regime-specific column.
  • u, predy - residuals and fitted values of every observation.
  • mode - :separate (one 2SLS per regime, multi holds the Spatex.Regression.TSLS fits by regime label) or :pooled (one 2SLS on the regime design, tsls holds it).
  • cols2regi - the flags over the x then yend columns; constant_regi, robust.

Summary

Types

t()

@type t() :: %Spatex.Regression.TSLSRegimes{
  betas: term(),
  chow: term(),
  cols2regi: term(),
  constant_regi: term(),
  kf: term(),
  kr: term(),
  kryd: term(),
  mode: term(),
  multi: term(),
  n: term(),
  name_q: term(),
  name_x: term(),
  name_y: term(),
  name_yend: term(),
  names: term(),
  nr: term(),
  predy: term(),
  regimes: term(),
  robust: term(),
  std_err: term(),
  tsls: term(),
  u: term(),
  vm: term(),
  warnings: term(),
  z_stat: term()
}