
Spatial two-stage least squares for the spatial lag model
Source:R/SpatialTwoStageLS.R
SpatialTwoStageLS.Rd\(Wy\) is endogenous in \(y = \rho W y + X\beta + e\); it is
instrumented by X and the spatial lags \(WX\) (and \(W^2X\) when
w2x) of the non-constant columns, plus \(W1\), \(W^21\) when
W is not row-standardised (Kelejian and Prucha 1998); a constant lag
duplicates the intercept and is dropped. \(\delta = (Z_p'Z_p)^{-1}
Z_p'y\) with \(Z_p\) the columns \(\hat{Wy}\) and X, residuals from Z (columns Wy and X),
\(Var = s^2 (Z_p'Z_p)^{-1}\), \(s^2 = e'e/(n-k)\), or the HC0 / HC1
sandwich. This is spatialreg::stsls.