Result of Spatex.Regression.tsls/5: two-stage least squares, with the attribute names of
spreg.TSLS (spreg 1.9.1) in snake_case.
Matrices are lists of rows. Non-finite numbers are the atoms :nan, :infinity and
:neg_infinity.
Fields
n,k- observations and coefficients (constant, exogenous and endogenous columns).betas,vm(sig2 * varb, or the White / HAC covariance),varb((Z'H (H'H)^-1 H'Z)^-1),std_err,z_stat([{z, p}], normal).sig2(u'u / n, oru'u / (n - k)withsig2n_k: true),utu,u,predy,pr2.robust(nil | :white | :hac),name_x(coefficient names),name_y,name_yend,name_q,warnings.
Summary
Types
@type t() :: %Spatex.Regression.TSLS{ betas: [value()], k: pos_integer(), n: pos_integer(), name_q: [String.t()], name_x: [String.t()], name_y: String.t(), name_yend: [String.t()], pr2: value(), predy: [value()], robust: nil | :white | :hac, sig2: value(), std_err: [value()], u: [value()], utu: value(), varb: [[value()]], vm: [[value()]], warnings: [String.t()], z_stat: [{value(), value()}] }
@type value() :: float() | :nan | :infinity | :neg_infinity