Skip to content

Spatial Durbin (mixed) Model Inquery

1 message · Pham,Chi

#
Hi,
I am trying to run a Spatial Durbin Model but I need to incorporate a robust standard error in it since the data have heteroskedasticity, I don?t know how to return the results with robust standard error. One other thing I would like to do is to also return the Direct and Indirect effects with the robust standard error. I managed to get R to show the Direct and Indirect coeffients but could not see their standard error. If you have some insight about this, I would be really thankful. Below are the commands I used:

#LOADING DATA FILE
#CREATING DEPENDENT AND INDEPENDENT MATRICES
#CREATING THE WEIGHT MATRIX (376x376)
#RUNNING SPATIAL DURBIN REGRESSION
Call:lagsarlm(formula = Y1 ~ X1, data = nonadj, listw = W1, type = "mixed")

Residuals:
      Min        1Q    Median        3Q       Max
-0.245203 -0.054391 -0.010243  0.037691  0.650065

Type: mixed
Coefficients: (asymptotic standard errors)
    (1 not defined because of singularities)
                           Estimate  Std. Error  z value  Pr(>|z|)
(Intercept)              8.4752e-02  1.0352e-01   0.8187 0.4129595
X1pop                    8.1888e-01  8.0222e-01   1.0208 0.3073616
X1Net.Migra              1.4557e-04  5.4679e-04   0.2662 0.7900713
X1FDI.capita             1.0825e-04  7.9579e-05   1.3603 0.1737211
X1Retail.sale.thou       3.5921e-01  4.7799e-02   7.5150 5.684e-14
X1Vol.Freight.N         -1.5598e-01  2.1753e-02  -7.1705 7.472e-13
X1Labor.in.business     -6.2889e-01  5.2969e-02 -11.8728 < 2.2e-16
X1Turnover.of.biz       -1.0088e-01  2.8196e-02  -3.5778 0.0003465
X1Coll.Stu.pcnt         -2.3874e-03  1.6242e-03  -1.4699 0.1415996
X1highschool             9.7207e-02  6.0762e-02   1.5998 0.1096474
X1secondprim            -2.0255e-02  1.2884e-01  -0.1572 0.8750760
X1Hospital               2.5882e-03  6.3570e-02   0.0407 0.9675240
X1cereal                -3.2210e-03  6.1418e-02  -0.0524 0.9581746
X1fishaqua               2.4810e-02  3.2659e-02   0.7596 0.4474674
X1cattlepoul             4.9122e-02  3.9470e-02   1.2445 0.2133005
lag.(Intercept)                  NA          NA       NA        NA
lag.X1pop                3.1168e-02  2.1213e-01   0.1469 0.8831907
lag.X1Net.Migra         -1.0739e-04  3.3696e-04  -0.3187 0.7499517
lag.X1FDI.capita         2.8408e-05  9.2314e-05   0.3077 0.7582897
lag.X1Retail.sale.thou  -6.2861e-02  5.8775e-02  -1.0695 0.2848380
lag.X1Vol.Freight.N      2.6938e-02  2.5154e-02   1.0709 0.2842134
lag.X1Labor.in.business -4.2901e-03  4.2330e-02  -0.1013 0.9192736
lag.X1Turnover.of.biz   -5.3610e-02  2.7632e-02  -1.9401 0.0523647
lag.X1Coll.Stu.pcnt     -2.6502e-03  1.5856e-03  -1.6714 0.0946416
lag.X1highschool        -4.9215e-03  7.5851e-02  -0.0649 0.9482666
lag.X1secondprim        -2.2008e-01  1.5629e-01  -1.4082 0.1590763
lag.X1Hospital           1.0957e-02  6.4151e-02   0.1708 0.8643748
lag.X1cereal            -1.9200e-02  4.8177e-02  -0.3985 0.6902360
lag.X1fishaqua           5.3577e-02  2.4049e-02   2.2279 0.0258902
lag.X1cattlepoul        -9.2296e-03  5.1168e-02  -0.1804 0.8568547

Rho: 0.021541, LR test value: 0.64222, p-value: 0.42291
Asymptotic standard error: 0.020742
    z-value: 1.0385, p-value: 0.29903
Wald statistic: 1.0785, p-value: 0.29903

Log likelihood: 362.6504 for mixed model
ML residual variance (sigma squared): 0.0084969, (sigma: 0.092178)
Number of observations: 376
Number of parameters estimated: 31
AIC: -663.3, (AIC for lm: -664.66)
LM test for residual autocorrelation
test value: 1.0739, p-value: 0.30008

#DIRECT AND INDIRECT EFFECT
Impact measures (mixed, exact):
                           Direct      Indirect         Total
X1pop                0.8216413667  0.4689926598  1.2906340265
X1Net.Migra          0.0001396760 -0.0010017906 -0.0008621146
X1FDI.capita         0.0001099911  0.0002953802  0.0004053713
X1Retail.sale.thou   0.3560995192 -0.5296852825 -0.1735857633
X1Vol.Freight.N     -0.1546482688  0.2265607787  0.0719125099
X1Labor.in.business -0.6298927708 -0.1713948301 -0.8012876009
X1Turnover.of.biz   -0.1040310437 -0.5360237512 -0.6400547949
X1Coll.Stu.pcnt     -0.0025399984 -0.0259598778 -0.0284998762
X1highschool         0.0970468278 -0.0271707229  0.0698761049
X1secondprim        -0.0327121352 -2.1189667965 -2.1516789317
X1Hospital           0.0032102908  0.1058274395  0.1090377303
X1cereal            -0.0043095229 -0.1851649223 -0.1894744453
X1fishaqua           0.0278662464  0.5199654674  0.5478317137
X1cattlepoul         0.0486605830 -0.0785212636 -0.0298606805



Thank you for any information that you have on this!
Chi Pham