Skip to content
Prev 23568 / 29559 Next

R: R: R: Spatial Durbin Model with regimes in a cross section framework

Thanks Roger, 
At least you managed to have an output even if it contains some issues which
I could address changing variables. 
Instead sorry but I am stuck. How can I get that? 
Loredana


-----Messaggio originale-----
Da: Roger Bivand [mailto:Roger.Bivand at nhh.no] 
Inviato: mercoled? 21 ottobre 2015 14:19
A: Loredana Mirra
Cc: r-sig-geo at r-project.org
Oggetto: Re: R: R: [R-sig-Geo] Spatial Durbin Model with regimes in a cross
section framework
On Wed, 21 Oct 2015, Loredana Mirra wrote:

            
OK, thanks. I cannot reproduce your error as such - I'm constructing:

ONE <- rep(1, nrow(highways))
NOC_Nord <- as.integer(!highways$C_Nord)

which may not be correct. I'm seeing:

Warning message:
In lagsarlm(GR5101m ~ 0 + I(factor(C_Nord))/(LVAPC51), data = highways,  :
   inversion of asymptotic covariance matrix failed for tol.solve = 1e-10
   reciprocal condition number = 6.6223e-12 - using numerical Hessian.

and an issue in an interaction term between the NOC_Nord term and the
intercept:

Coefficients: (numerical Hessian approximate standard errors)
     (1 not defined because of singularities)
                        Estimate Std. Error  z value Pr(>|z|)
ONE:C_Nord            0.1385889  0.1310782   1.0573   0.2904
ONE:NOC_Nord          0.1493507  0.1322529   1.1293   0.2588
LVAPC51:C_Nord       -0.0170657  0.0010275 -16.6083   <2e-16
LVAPC51:NOC_Nord     -0.0192602  0.0018370 -10.4845   <2e-16
lag.ONE:C_Nord        0.0195317  0.1159969   0.1684   0.8663
lag.ONE:NOC_Nord             NA         NA       NA       NA
lag.LVAPC51:C_Nord   -0.0034108  0.0086611  -0.3938   0.6937
lag.LVAPC51:NOC_Nord -0.0032861  0.0223143  -0.1473   0.8829

Rho: 0.57171, LR test value: 1.8528, p-value: 0.17346 Approximate (numerical
Hessian) standard error: 0.34917
     z-value: 1.6374, p-value: 0.10156
Wald statistic: 2.6809, p-value: 0.10156

Roger
R.
SDM.
antivirus.
--
Roger Bivand
Department of Economics, Norwegian School of Economics, Helleveien 30,
N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 91 00
e-mail: Roger.Bivand at nhh.no


---
Questa e-mail ? stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus