Skip to content

Commit

Permalink
rebuild HASR vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
SpatLyu committed Dec 5, 2024
1 parent 960b820 commit 3fb43c7
Showing 1 changed file with 66 additions and 66 deletions.
132 changes: 66 additions & 66 deletions vignettes/HSAR.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -206,43 +206,43 @@ summary(res)
##
## Coefficients:
## Mean SD
## (Intercept) 1.880275e+03 10.451464146
## size 4.329367e+00 0.513033746
## age -1.999349e+01 1.324229710
## greensp 1.025379e-03 0.001070125
## population -1.020677e-02 0.002522363
## museums -4.452665e+01 10.013196719
## airbnb 5.915438e-01 0.268172791
## (Intercept) 1.880878e+03 9.9085321261
## size 4.308784e+00 0.4857075117
## age -1.992973e+01 1.3218947297
## greensp 7.638049e-04 0.0006136726
## population -9.642519e-03 0.0022135920
## museums -4.488692e+01 9.5710324827
## airbnb 5.575054e-01 0.1645700213
##
## Spatial Coefficients:
## rho lambda
## [1,] 0.189246 0.095438
## rho lambda
## [1,] 0.188356 0.14771
##
## Diagnostics
## Deviance information criterion (DIC): 28198.27
## Effective number of parameters (pd): -1.504082
## Log likelihood: -14100.64
## Pseudo R squared: 0.3620759
## Deviance information criterion (DIC): 28196.61
## Effective number of parameters (pd): -1.524159
## Log likelihood: -14099.83
## Pseudo R squared: 0.3588787
##
## Impacts:
## direct indirect total
## (Intercept) 1.880841e+03 4.382206e+02 2.319062e+03
## size 4.330671e+00 1.009011e+00 5.339682e+00
## age -1.999951e+01 -4.659722e+00 -2.465924e+01
## greensp 1.025687e-03 2.389767e-04 1.264664e-03
## population -1.020984e-02 -2.378809e-03 -1.258865e-02
## museums -4.454006e+01 -1.037747e+01 -5.491752e+01
## airbnb 5.917219e-01 1.378663e-01 7.295883e-01
## (Intercept) 1.881439e+03 4.358260e+02 2.317264e+03
## size 4.310068e+00 9.984060e-01 5.308474e+00
## age -1.993567e+01 -4.618001e+00 -2.455368e+01
## greensp 7.640326e-04 1.769844e-04 9.410169e-04
## population -9.645393e-03 -2.234308e-03 -1.187970e-02
## museums -4.490030e+01 -1.040093e+01 -5.530124e+01
## airbnb 5.576716e-01 1.291819e-01 6.868535e-01
##
## Quantiles:
## 5% 25% 50% 75% 95%
## (Intercept) 1.862427e+03 1.873212e+03 1.880350e+03 1.887635e+03 1.896350e+03
## size 3.489378e+00 3.986492e+00 4.321245e+00 4.678758e+00 5.205164e+00
## age -2.229396e+01 -2.091545e+01 -1.998110e+01 -1.907934e+01 -1.799405e+01
## greensp -4.953357e-04 3.921906e-04 9.347588e-04 1.452994e-03 3.367750e-03
## population -1.446168e-02 -1.192027e-02 -1.031386e-02 -8.534997e-03 -5.796541e-03
## museums -6.060125e+01 -5.129784e+01 -4.486833e+01 -3.735308e+01 -2.862404e+01
## airbnb 1.890712e-01 4.267859e-01 5.849742e-01 7.457998e-01 1.096826e+00
## (Intercept) 1.865108e+03 1.873915e+03 1.880482e+03 1.887116e+03 1.899108e+03
## size 3.474374e+00 3.985585e+00 4.313592e+00 4.660815e+00 5.054106e+00
## age -2.199631e+01 -2.079239e+01 -1.997034e+01 -1.906072e+01 -1.767202e+01
## greensp -2.965393e-04 3.974262e-04 7.551037e-04 1.132355e-03 1.722759e-03
## population -1.320664e-02 -1.116246e-02 -9.764824e-03 -8.101470e-03 -5.738580e-03
## museums -6.031927e+01 -5.151993e+01 -4.444317e+01 -3.817029e+01 -3.079498e+01
## airbnb 2.722792e-01 4.595209e-01 5.553124e-01 6.682065e-01 8.220889e-01
```

and the two simpler models defined for rho = 0 and lambda=0.
Expand All @@ -263,33 +263,33 @@ summary(res_1)
##
## Coefficients:
## Mean SD
## (Intercept) 1.880563e+03 9.2553985121
## size 4.326023e+00 0.4325595027
## age -1.997018e+01 1.2471979927
## greensp 5.829718e-04 0.0006813374
## population -6.584233e-03 0.0011227284
## museums -4.534275e+01 9.5807150591
## airbnb 6.574944e-01 0.1764067282
## (Intercept) 1.881134e+03 1.002537e+01
## size 4.315024e+00 4.218945e-01
## age -2.002619e+01 1.287527e+00
## greensp 7.226078e-04 5.564728e-04
## population -7.121008e-03 1.120733e-03
## museums -4.585389e+01 1.025743e+01
## airbnb 6.433655e-01 1.604121e-01
##
## Spatial Coefficients:
## lambda
## 0.111888
## lambda
## -0.026046
##
## Diagnostics
## Deviance information criterion (DIC): 28193.07
## Effective number of parameters (pd): -2.092455
## Log likelihood: -14098.63
## Pseudo R squared: 0.3569871
## Deviance information criterion (DIC): 28189.43
## Effective number of parameters (pd): -1.792601
## Log likelihood: -14096.51
## Pseudo R squared: 0.3578193
##
## Quantiles:
## 5% 25% 50% 75% 95%
## (Intercept) 1.865244e+03 1.874265e+03 1.881036e+03 1.886741e+03 1.895768e+03
## size 3.641719e+00 4.033250e+00 4.310376e+00 4.628015e+00 5.048434e+00
## age -2.200615e+01 -2.083570e+01 -1.996753e+01 -1.911833e+01 -1.802003e+01
## greensp -6.439277e-04 2.933380e-04 6.549234e-04 1.027634e-03 1.541188e-03
## population -8.302344e-03 -7.287608e-03 -6.676006e-03 -5.995643e-03 -4.711512e-03
## museums -6.123372e+01 -5.128380e+01 -4.534965e+01 -3.955427e+01 -2.992627e+01
## airbnb 3.592684e-01 5.376341e-01 6.620247e-01 7.804008e-01 9.272886e-01
## (Intercept) 1.864436e+03 1.874832e+03 1.881650e+03 1.887990e+03 1.896975e+03
## size 3.644688e+00 4.041712e+00 4.329345e+00 4.602022e+00 5.023365e+00
## age -2.219428e+01 -2.086044e+01 -2.001777e+01 -1.921052e+01 -1.781857e+01
## greensp -5.217643e-05 3.655865e-04 6.542170e-04 1.009572e-03 1.786107e-03
## population -8.760368e-03 -7.847762e-03 -7.202664e-03 -6.476834e-03 -5.157352e-03
## museums -6.156313e+01 -5.381063e+01 -4.567536e+01 -3.870049e+01 -2.860034e+01
## airbnb 3.738831e-01 5.369197e-01 6.492991e-01 7.430972e-01 9.062610e-01
```

and secondly, given lambda = 0 (no interaction at the higher level) we get
Expand All @@ -309,31 +309,31 @@ summary(res_2)
##
## Coefficients:
## Mean SD
## (Intercept) 1.880265e+03 10.543140981
## size 4.308513e+00 0.525275852
## age -1.986549e+01 1.319366170
## greensp 1.371616e-03 0.001140316
## population -9.124421e-03 0.002675214
## museums -4.476371e+01 9.550375854
## airbnb 4.911532e-01 0.225534492
## (Intercept) 1.881433e+03 9.7787251890
## size 4.320724e+00 0.5145981502
## age -2.006309e+01 1.3671298243
## greensp 9.191971e-04 0.0006723134
## population -9.097623e-03 0.0022338151
## museums -4.564746e+01 9.6967267461
## airbnb 5.445758e-01 0.2287821477
##
## Spatial Coefficients:
## rho
## 0.173638
## 0.173088
##
## Diagnostics
## Deviance information criterion (DIC): 28194.37
## Effective number of parameters (pd): -1.627506
## Log likelihood: -14098.81
## Pseudo R squared: 0.3590682
## Deviance information criterion (DIC): 28198.6
## Effective number of parameters (pd): -1.704043
## Log likelihood: -14101
## Pseudo R squared: 0.3623617
##
## Quantiles:
## 5% 25% 50% 75% 95%
## (Intercept) 1.863706e+03 1.873326e+03 1.879689e+03 1.887368e+03 1.897511e+03
## size 3.490029e+00 3.923317e+00 4.296004e+00 4.663584e+00 5.184349e+00
## age -2.200291e+01 -2.074799e+01 -1.982105e+01 -1.895658e+01 -1.769628e+01
## greensp 1.420867e-05 6.256490e-04 9.982406e-04 1.942325e-03 3.742835e-03
## population -1.315579e-02 -1.102766e-02 -9.232202e-03 -7.360224e-03 -4.491216e-03
## museums -5.960091e+01 -5.079269e+01 -4.475590e+01 -3.875467e+01 -2.831173e+01
## airbnb 6.098123e-02 3.628817e-01 5.108585e-01 6.384128e-01 8.167038e-01
## (Intercept) 1.865152e+03 1.875127e+03 1.881216e+03 1.887290e+03 1.897579e+03
## size 3.458822e+00 3.993053e+00 4.325490e+00 4.657485e+00 5.126591e+00
## age -2.231385e+01 -2.093929e+01 -2.011275e+01 -1.917424e+01 -1.780022e+01
## greensp -1.478657e-04 4.673335e-04 9.304327e-04 1.372135e-03 1.963982e-03
## population -1.280245e-02 -1.064503e-02 -9.044582e-03 -7.595252e-03 -5.335030e-03
## museums -6.121924e+01 -5.253706e+01 -4.566362e+01 -3.913182e+01 -2.949665e+01
## airbnb 1.861284e-01 3.930978e-01 5.466702e-01 6.996989e-01 9.133508e-01
```

0 comments on commit 3fb43c7

Please sign in to comment.