Skip to content
Prev 23331 / 29559 Next

Error message --- stsls and lagsarlm!

Hi,

I run spatial lag model with k nearest neighbor weight matrix using both
stsls and lagsarlm!

I tried k=4:
#stsls method
knn4nwuilistws)
Error in base::chol2inv(x, ...) :
 element (89, 89) is zero, so the inverse cannot be computed

#ML method
knn4nwuilistws)
Warning messages:
1: In lagsarlm(fm1, data = sales.nonwuidata.sp, knn4nwuilistws) :
  inversion of asymptotic covariance matrix failed for tol.solve = 1e-10
  reciprocal condition number = 3.30065e-13 - using numerical Hessian.
2: In sqrt(diag(fdHess)[-1]) : NaNs produced

I also tried other weight matrix but got the same error message. Any
suggestions on how to deal with the error/warning message...

thanks,

Chelsea