Skip to content
Prev 28274 / 29559 Next

Using stsls() with predict.sarlm()

On Mon, 13 Jul 2020, Banabak, Selim wrote:

            
You would need to go through the underlying equations. Just using the 
point estimates of the coefficients and their standard errors is one 
approach, but there are few studies beyond Goulard et al. Maybe look at 
Suesse and co-author https://doi.org/10.1016/j.csda.2017.11.004, 
https://doi.org/10.1080/00949655.2017.1286495 (also ML - much of the 
STSLS/GMM literature avoids looking at important problems).

While estimating and fitting larger data sets is more time-consuming with 
ML, using LU or Cholesky decomposition is practical when the spatial 
weights are sparse (this applies to STSLS too). Predicting is also 
constrained when n is large, as inverting the nxn matrix may be needed.

Check whether Stata knows how to predict from STSLS, and check usage of 
sphet::spreg rather than spatialreg::stsls. Consider contacting the 
maintainer of sphet if there is no response on this list, as it would make 
more sense to explore predict methods for more modern sphet 
implementations than legacy ones in spatialreg.
You would need to do the matrix math separately - maybe contacting the 
author of the spatialreg implementations, Martin Gubri, would also make 
sense.

Interesting topic!

Roger