Result of Spatex.Regression.ml_lag/4: the maximum-likelihood spatial lag model
y = rho W y + X beta + e, with the attribute names of spreg.ML_Lag (spreg 1.9.1) in
snake_case.
Matrices (vm, vm1) are lists of rows. betas, std_err and z_stat list the regressors
first and rho last, matching name_x (whose last entry is "W_<name_y>"). Non-finite numbers
are the atoms :nan, :infinity and :neg_infinity.
Fields
n,k- observations and coefficients; like spreg,kcountsrho.betas,rho,vm(covariance ofbetas),vm1(covariance ofbetas,rhoandsigma^2),std_err,z_stat([{z, p}]).logll,aic,schwarz,sig2(u'u / n),utu.uresiduals,predy(X beta + rho W y),predy_e(the reduced-form prediction(I - rho W)^-1 X betaby power expansion, truncated atepsilon),e_pred(y - predy_e).pr2(squared correlation ofyandpredy),pr2_e(same withpredy_e).mean_y,std_y(sample standard deviation).sp_multipliers-%{simple: {adi, aii, ati}, full: ..., power: ...}for the requestedspat_impacts;impacts- the same keys mapping to a list of%{name, direct, indirect, total}per non-constant regressor;power_terms- powers used by the power approximation. Allnilwithspat_impacts: nil.method,epsilon,iterations(objective evaluations),converged,name_x,name_y,warnings.
Summary
Types
@type t() :: %Spatex.Regression.MLLag{ aic: value(), betas: [value()], converged: boolean(), e_pred: [value()], epsilon: float(), impacts: %{optional(atom()) => [map()]} | nil, iterations: pos_integer(), k: pos_integer(), logll: value(), mean_y: value(), method: :full | :ord | :lu, n: pos_integer(), name_x: [String.t()], name_y: String.t(), power_terms: pos_integer() | nil, pr2: value(), pr2_e: value() | nil, predy: [value()], predy_e: [value()], rho: value(), schwarz: value(), sig2: value(), sp_multipliers: %{optional(atom()) => multipliers()} | nil, std_err: [value()], std_y: value(), u: [value()], utu: value(), vm: [[value()]], vm1: [[value()]], warnings: [String.t()], z_stat: [pair()] }
@type value() :: float() | :nan | :infinity | :neg_infinity