In-class Exercise 4: Calibrating Spatial Interaction Models with R

Author

Chai Zhixuan

Published

December 10, 2023

Modified

December 10, 2023

Overview

This in-class exercise is a continuation of Hands-on Exercise 3, In-class Exercise 3 and In-class Exercise 4: Preparing Spatial Interaction Modelling Variables. We will continue our journey of calibrating Spatial Interaction Models by using propulsiveness and attractiveness variables prepared in earlier in-class exercise.

Getting Started

pacman::p_load(tmap, sf, performance, knitr,
               AER, MASS, ggpubr, tidyverse,
               epiDisplay)

The Data

flow_data <- read_rds("data/rds/flow_data_tidy.rds")
glimpse(flow_data)
Rows: 14,734
Columns: 13
$ ORIGIN_SZ       <chr> "AMSZ01", "AMSZ01", "AMSZ01", "AMSZ01", "AMSZ01", "AMS…
$ DESTIN_SZ       <chr> "AMSZ01", "AMSZ02", "AMSZ03", "AMSZ04", "AMSZ05", "AMS…
$ MORNING_PEAK    <dbl> 1998, 8289, 8971, 2252, 6136, 2148, 1620, 1925, 1773, …
$ dist            <dbl> 50.0000, 810.4491, 1360.9294, 840.4432, 1076.7916, 805…
$ ORIGIN_AGE7_12  <dbl> 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, 310,…
$ ORIGIN_AGE13_24 <dbl> 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710,…
$ ORIGIN_AGE25_64 <dbl> 2780, 2780, 2780, 2780, 2780, 2780, 2780, 2780, 2780, …
$ DESTIN_AGE7_12  <dbl> 310.00, 1140.00, 1010.00, 980.00, 810.00, 1050.00, 420…
$ DESTIN_AGE13_24 <dbl> 710.00, 2770.00, 2650.00, 2000.00, 1920.00, 2390.00, 1…
$ DESTIN_AGE25_64 <dbl> 2780.00, 15700.00, 14240.00, 11320.00, 9650.00, 12460.…
$ SCHOOL_COUNT    <dbl> 0.99, 2.00, 2.00, 1.00, 3.00, 2.00, 0.99, 0.99, 3.00, …
$ RETAIL_COUNT    <dbl> 1.00, 0.99, 6.00, 0.99, 0.99, 0.99, 1.00, 117.00, 0.99…
$ geometry        <LINESTRING [m]> LINESTRING (29501.77 39419...., LINESTRING …
kable(head(flow_data[, 1:5], n = 5))
ORIGIN_SZ DESTIN_SZ MORNING_PEAK dist ORIGIN_AGE7_12 geometry
AMSZ01 AMSZ01 1998 50.0000 310 LINESTRING (29501.77 39419….
AMSZ01 AMSZ02 8289 810.4491 310 LINESTRING (29501.77 39419….
AMSZ01 AMSZ03 8971 1360.9294 310 LINESTRING (29501.77 39419….
AMSZ01 AMSZ04 2252 840.4432 310 LINESTRING (29501.77 39419….
AMSZ01 AMSZ05 6136 1076.7916 310 LINESTRING (29501.77 39419….

Preparing inter-zonal flow data

flow_data$FlowNoIntra <- ifelse(
  flow_data$ORIGIN_SZ == flow_data$DESTIN_SZ,
  0, flow_data$MORNING_PEAK)
flow_data$offset <- ifelse(
  flow_data$ORIGIN_SZ == flow_data$DESTIN_SZ,
  0.000001, 1)
inter_zonal_flow <- flow_data %>%
  filter(FlowNoIntra > 0)

Calibrating Spatial Interaction Models

Origin- (Production-) constrained Model

orcSIM_Poisson <- glm(formula = MORNING_PEAK ~ 
                ORIGIN_SZ +
                log(SCHOOL_COUNT) +
                log(dist) - 1,
              family = poisson(link = "log"),
              data = inter_zonal_flow,
              na.action = na.exclude)
summary(orcSIM_Poisson)

Call:
glm(formula = MORNING_PEAK ~ ORIGIN_SZ + log(SCHOOL_COUNT) + 
    log(dist) - 1, family = poisson(link = "log"), data = inter_zonal_flow, 
    na.action = na.exclude)

Coefficients:
                    Estimate Std. Error  z value Pr(>|z|)    
ORIGIN_SZAMSZ01   19.8348561  0.0047238  4198.89   <2e-16 ***
ORIGIN_SZAMSZ02   20.5944893  0.0042428  4854.01   <2e-16 ***
ORIGIN_SZAMSZ03   20.2196800  0.0045182  4475.14   <2e-16 ***
ORIGIN_SZAMSZ04   19.7601499  0.0049621  3982.22   <2e-16 ***
ORIGIN_SZAMSZ05   19.6201706  0.0056125  3495.81   <2e-16 ***
ORIGIN_SZAMSZ06   19.9227734  0.0048571  4101.75   <2e-16 ***
ORIGIN_SZAMSZ07   18.6888684  0.0096199  1942.72   <2e-16 ***
ORIGIN_SZAMSZ08   19.1748771  0.0090571  2117.11   <2e-16 ***
ORIGIN_SZAMSZ09   20.0034895  0.0052661  3798.53   <2e-16 ***
ORIGIN_SZAMSZ10   20.2709047  0.0045301  4474.74   <2e-16 ***
ORIGIN_SZAMSZ11   18.4507374  0.0129172  1428.39   <2e-16 ***
ORIGIN_SZAMSZ12   18.3551601  0.0109577  1675.10   <2e-16 ***
ORIGIN_SZBDSZ01   21.1681145  0.0043259  4893.40   <2e-16 ***
ORIGIN_SZBDSZ02   20.6704634  0.0050452  4097.04   <2e-16 ***
ORIGIN_SZBDSZ03   20.9386261  0.0045286  4623.64   <2e-16 ***
ORIGIN_SZBDSZ04   21.7923608  0.0038648  5638.66   <2e-16 ***
ORIGIN_SZBDSZ05   20.8655426  0.0045860  4549.88   <2e-16 ***
ORIGIN_SZBDSZ06   21.0481502  0.0046044  4571.31   <2e-16 ***
ORIGIN_SZBDSZ07   19.1946161  0.0097935  1959.93   <2e-16 ***
ORIGIN_SZBDSZ08   19.2698235  0.0091091  2115.44   <2e-16 ***
ORIGIN_SZBKSZ01   19.4843657  0.0064508  3020.45   <2e-16 ***
ORIGIN_SZBKSZ02   20.1201070  0.0049850  4036.12   <2e-16 ***
ORIGIN_SZBKSZ03   20.3562182  0.0047005  4330.62   <2e-16 ***
ORIGIN_SZBKSZ04   19.5528328  0.0059397  3291.90   <2e-16 ***
ORIGIN_SZBKSZ05   19.6019882  0.0063059  3108.51   <2e-16 ***
ORIGIN_SZBKSZ06   19.6583036  0.0056117  3503.10   <2e-16 ***
ORIGIN_SZBKSZ07   20.4422246  0.0041776  4893.29   <2e-16 ***
ORIGIN_SZBKSZ08   19.8790301  0.0050429  3941.96   <2e-16 ***
ORIGIN_SZBKSZ09   19.8092400  0.0055440  3573.10   <2e-16 ***
ORIGIN_SZBLSZ01   18.1240710  0.0149002  1216.36   <2e-16 ***
ORIGIN_SZBLSZ02   17.8130174  0.0192358   926.03   <2e-16 ***
ORIGIN_SZBLSZ03   16.9580022  0.0462658   366.53   <2e-16 ***
ORIGIN_SZBLSZ04   18.2702931  0.0233271   783.22   <2e-16 ***
ORIGIN_SZBMSZ01   20.0444122  0.0052589  3811.51   <2e-16 ***
ORIGIN_SZBMSZ02   18.6031531  0.0066413  2801.14   <2e-16 ***
ORIGIN_SZBMSZ03   19.3188719  0.0054609  3537.65   <2e-16 ***
ORIGIN_SZBMSZ04   19.4012617  0.0049051  3955.35   <2e-16 ***
ORIGIN_SZBMSZ05   16.8827045  0.0168726  1000.60   <2e-16 ***
ORIGIN_SZBMSZ06   16.9290380  0.0181768   931.35   <2e-16 ***
ORIGIN_SZBMSZ07   19.2421046  0.0056052  3432.92   <2e-16 ***
ORIGIN_SZBMSZ08   19.1050263  0.0055689  3430.64   <2e-16 ***
ORIGIN_SZBMSZ09   18.6535335  0.0086043  2167.93   <2e-16 ***
ORIGIN_SZBMSZ10   18.2887211  0.0089018  2054.51   <2e-16 ***
ORIGIN_SZBMSZ11   18.8239689  0.0063079  2984.18   <2e-16 ***
ORIGIN_SZBMSZ12   18.7093457  0.0092939  2013.08   <2e-16 ***
ORIGIN_SZBMSZ13   19.6160534  0.0057392  3417.89   <2e-16 ***
ORIGIN_SZBMSZ14   19.0511599  0.0063250  3012.02   <2e-16 ***
ORIGIN_SZBMSZ15   19.3676364  0.0057888  3345.71   <2e-16 ***
ORIGIN_SZBMSZ16   18.3856824  0.0092466  1988.37   <2e-16 ***
ORIGIN_SZBMSZ17   18.3262978  0.0157593  1162.89   <2e-16 ***
ORIGIN_SZBPSZ01   20.0309398  0.0053382  3752.36   <2e-16 ***
ORIGIN_SZBPSZ02   19.6217238  0.0061249  3203.59   <2e-16 ***
ORIGIN_SZBPSZ03   19.6911256  0.0059596  3304.09   <2e-16 ***
ORIGIN_SZBPSZ04   20.3371244  0.0048003  4236.66   <2e-16 ***
ORIGIN_SZBPSZ05   20.4232382  0.0043323  4714.13   <2e-16 ***
ORIGIN_SZBPSZ06   18.7700645  0.0093449  2008.59   <2e-16 ***
ORIGIN_SZBPSZ07   19.4084279  0.0087828  2209.83   <2e-16 ***
ORIGIN_SZBSSZ01   19.9759546  0.0056370  3543.69   <2e-16 ***
ORIGIN_SZBSSZ02   20.2471427  0.0046900  4317.07   <2e-16 ***
ORIGIN_SZBSSZ03   19.6096716  0.0052563  3730.70   <2e-16 ***
ORIGIN_SZBTSZ01   20.0154768  0.0058416  3426.40   <2e-16 ***
ORIGIN_SZBTSZ02   19.3076644  0.0081266  2375.85   <2e-16 ***
ORIGIN_SZBTSZ03   19.5224950  0.0068713  2841.16   <2e-16 ***
ORIGIN_SZBTSZ04   18.6537299  0.0103752  1797.91   <2e-16 ***
ORIGIN_SZBTSZ05   18.7920411  0.0120478  1559.79   <2e-16 ***
ORIGIN_SZBTSZ06   18.6408221  0.0094384  1974.99   <2e-16 ***
ORIGIN_SZBTSZ07   17.5616925  0.0141445  1241.60   <2e-16 ***
ORIGIN_SZBTSZ08   18.6836943  0.0109486  1706.48   <2e-16 ***
ORIGIN_SZCBSZ01   18.4777047  0.0548304   337.00   <2e-16 ***
ORIGIN_SZCCSZ01   18.9366613  0.0139342  1359.01   <2e-16 ***
ORIGIN_SZCHSZ01   19.7097762  0.0120926  1629.91   <2e-16 ***
ORIGIN_SZCHSZ02   19.3473689  0.0081367  2377.78   <2e-16 ***
ORIGIN_SZCHSZ03   21.3174526  0.0063367  3364.10   <2e-16 ***
ORIGIN_SZCKSZ01   19.9914781  0.0048935  4085.28   <2e-16 ***
ORIGIN_SZCKSZ02   20.4024397  0.0049909  4087.90   <2e-16 ***
ORIGIN_SZCKSZ03   20.6227932  0.0041757  4938.78   <2e-16 ***
ORIGIN_SZCKSZ04   21.2394341  0.0042067  5048.92   <2e-16 ***
ORIGIN_SZCKSZ05   20.8119715  0.0049187  4231.21   <2e-16 ***
ORIGIN_SZCKSZ06   20.1723727  0.0071706  2813.19   <2e-16 ***
ORIGIN_SZCLSZ01   19.3418875  0.0076590  2525.39   <2e-16 ***
ORIGIN_SZCLSZ02   18.5210857  0.0135452  1367.35   <2e-16 ***
ORIGIN_SZCLSZ03   19.0639140  0.0080131  2379.08   <2e-16 ***
ORIGIN_SZCLSZ04   20.7015199  0.0041966  4932.94   <2e-16 ***
ORIGIN_SZCLSZ05   18.2512094  0.0146697  1244.14   <2e-16 ***
ORIGIN_SZCLSZ06   20.8049642  0.0039225  5304.03   <2e-16 ***
ORIGIN_SZCLSZ07   19.6317502  0.0053880  3643.64   <2e-16 ***
ORIGIN_SZCLSZ08   20.0819877  0.0056661  3544.24   <2e-16 ***
ORIGIN_SZCLSZ09   18.5580583  0.0165316  1122.58   <2e-16 ***
ORIGIN_SZDTSZ02   15.9547091  0.0833971   191.31   <2e-16 ***
ORIGIN_SZDTSZ03   16.1809403  0.0737950   219.27   <2e-16 ***
ORIGIN_SZDTSZ13   16.8934424  0.0312424   540.72   <2e-16 ***
ORIGIN_SZGLSZ01   18.3305602  0.0095978  1909.87   <2e-16 ***
ORIGIN_SZGLSZ02   20.1130799  0.0049125  4094.29   <2e-16 ***
ORIGIN_SZGLSZ03   20.0087850  0.0053081  3769.50   <2e-16 ***
ORIGIN_SZGLSZ04   20.8659429  0.0041095  5077.50   <2e-16 ***
ORIGIN_SZGLSZ05   20.7695912  0.0043005  4829.55   <2e-16 ***
ORIGIN_SZHGSZ01   20.0700050  0.0044558  4504.20   <2e-16 ***
ORIGIN_SZHGSZ02   20.2162306  0.0044078  4586.45   <2e-16 ***
ORIGIN_SZHGSZ03   20.0730779  0.0048691  4122.52   <2e-16 ***
ORIGIN_SZHGSZ04   20.7463916  0.0039970  5190.44   <2e-16 ***
ORIGIN_SZHGSZ05   21.0085543  0.0039787  5280.22   <2e-16 ***
ORIGIN_SZHGSZ06   19.7596631  0.0054033  3656.96   <2e-16 ***
ORIGIN_SZHGSZ07   20.3039840  0.0045933  4420.33   <2e-16 ***
ORIGIN_SZHGSZ08   20.0466913  0.0052359  3828.66   <2e-16 ***
ORIGIN_SZHGSZ09   18.2904463  0.0068796  2658.66   <2e-16 ***
ORIGIN_SZHGSZ10   16.9273379  0.0421016   402.06   <2e-16 ***
ORIGIN_SZJESZ01   20.2105223  0.0046345  4360.89   <2e-16 ***
ORIGIN_SZJESZ02   20.0553136  0.0046250  4336.27   <2e-16 ***
ORIGIN_SZJESZ03   19.9283521  0.0049663  4012.72   <2e-16 ***
ORIGIN_SZJESZ04   18.5272373  0.0099131  1868.96   <2e-16 ***
ORIGIN_SZJESZ05   17.8163098  0.0138768  1283.89   <2e-16 ***
ORIGIN_SZJESZ06   20.0519054  0.0044827  4473.13   <2e-16 ***
ORIGIN_SZJESZ07   18.1592588  0.0117147  1550.12   <2e-16 ***
ORIGIN_SZJESZ08   19.0127760  0.0116351  1634.09   <2e-16 ***
ORIGIN_SZJESZ09   20.6474613  0.0048360  4269.56   <2e-16 ***
ORIGIN_SZJESZ10   18.7316276  0.0191218   979.60   <2e-16 ***
ORIGIN_SZJESZ11   18.4713145  0.0197052   937.38   <2e-16 ***
ORIGIN_SZJWSZ01   20.4455197  0.0062844  3253.40   <2e-16 ***
ORIGIN_SZJWSZ02   20.8736301  0.0042105  4957.46   <2e-16 ***
ORIGIN_SZJWSZ03   21.2446711  0.0039394  5392.87   <2e-16 ***
ORIGIN_SZJWSZ04   20.5320433  0.0046167  4447.29   <2e-16 ***
ORIGIN_SZJWSZ05   18.1978617  0.0128796  1412.92   <2e-16 ***
ORIGIN_SZJWSZ06   18.8656784  0.0107494  1755.05   <2e-16 ***
ORIGIN_SZJWSZ07   17.6298655  0.0277165   636.08   <2e-16 ***
ORIGIN_SZJWSZ08   21.8938104  0.0037081  5904.30   <2e-16 ***
ORIGIN_SZJWSZ09   21.6870952  0.0035930  6035.95   <2e-16 ***
ORIGIN_SZKLSZ01   20.1320553  0.0047771  4214.27   <2e-16 ***
ORIGIN_SZKLSZ02   19.2343254  0.0062284  3088.16   <2e-16 ***
ORIGIN_SZKLSZ03   19.4537766  0.0057108  3406.52   <2e-16 ***
ORIGIN_SZKLSZ04   17.7998675  0.0119771  1486.16   <2e-16 ***
ORIGIN_SZKLSZ05   18.7901113  0.0107510  1747.75   <2e-16 ***
ORIGIN_SZKLSZ06   14.0574604  0.1857156    75.69   <2e-16 ***
ORIGIN_SZKLSZ07   18.7444042  0.0084840  2209.39   <2e-16 ***
ORIGIN_SZKLSZ08   18.1689046  0.0101435  1791.19   <2e-16 ***
ORIGIN_SZLKSZ01   18.1057097  0.0397078   455.97   <2e-16 ***
ORIGIN_SZMDSZ01   18.6897699  0.0285411   654.84   <2e-16 ***
ORIGIN_SZMDSZ02   19.2168566  0.0102648  1872.12   <2e-16 ***
ORIGIN_SZMDSZ03   17.8088649  0.0169590  1050.11   <2e-16 ***
ORIGIN_SZMPSZ01   19.2289393  0.0083870  2292.72   <2e-16 ***
ORIGIN_SZMPSZ02   19.4637541  0.0068241  2852.21   <2e-16 ***
ORIGIN_SZMPSZ03   20.1158402  0.0054351  3701.07   <2e-16 ***
ORIGIN_SZMUSZ02   16.0345681  0.1037455   154.56   <2e-16 ***
ORIGIN_SZNTSZ01   16.9917526  0.0352472   482.07   <2e-16 ***
ORIGIN_SZNTSZ02   16.5919379  0.0233165   711.60   <2e-16 ***
ORIGIN_SZNTSZ03   18.8932132  0.0075744  2494.34   <2e-16 ***
ORIGIN_SZNTSZ05   15.8704767  0.0495822   320.08   <2e-16 ***
ORIGIN_SZNTSZ06   15.3135326  0.0557027   274.92   <2e-16 ***
ORIGIN_SZNVSZ01   20.2546190  0.0043237  4684.53   <2e-16 ***
ORIGIN_SZNVSZ02   19.2392181  0.0065216  2950.10   <2e-16 ***
ORIGIN_SZNVSZ03   18.8978476  0.0080305  2353.26   <2e-16 ***
ORIGIN_SZNVSZ04   18.8916836  0.0090864  2079.11   <2e-16 ***
ORIGIN_SZNVSZ05   17.6223579  0.0168013  1048.87   <2e-16 ***
ORIGIN_SZPGSZ01   19.3354858  0.0122868  1573.67   <2e-16 ***
ORIGIN_SZPGSZ02   19.4076441  0.0072856  2663.82   <2e-16 ***
ORIGIN_SZPGSZ03   20.4934774  0.0045228  4531.10   <2e-16 ***
ORIGIN_SZPGSZ04   20.9829809  0.0041075  5108.40   <2e-16 ***
ORIGIN_SZPGSZ05   20.1767537  0.0057227  3525.73   <2e-16 ***
ORIGIN_SZPLSZ01   19.1757857  0.0119920  1599.05   <2e-16 ***
ORIGIN_SZPLSZ02   18.8191619  0.0149646  1257.58   <2e-16 ***
ORIGIN_SZPLSZ03   18.3098090  0.0371707   492.59   <2e-16 ***
ORIGIN_SZPLSZ04   17.4543587  0.0370232   471.44   <2e-16 ***
ORIGIN_SZPLSZ05   18.1978293  0.0225001   808.79   <2e-16 ***
ORIGIN_SZPNSZ01   21.3553624  0.0044609  4787.18   <2e-16 ***
ORIGIN_SZPNSZ02   20.5701589  0.0111236  1849.23   <2e-16 ***
ORIGIN_SZPNSZ03   18.4160952  0.0193487   951.80   <2e-16 ***
ORIGIN_SZPNSZ04   17.7262285  0.0334873   529.34   <2e-16 ***
ORIGIN_SZPNSZ05   18.9611837  0.0275439   688.40   <2e-16 ***
ORIGIN_SZPRSZ01   19.8725779  0.0117373  1693.11   <2e-16 ***
ORIGIN_SZPRSZ02   21.1465884  0.0044476  4754.59   <2e-16 ***
ORIGIN_SZPRSZ03   20.7704400  0.0045188  4596.45   <2e-16 ***
ORIGIN_SZPRSZ04   19.7406719  0.0074642  2644.70   <2e-16 ***
ORIGIN_SZPRSZ05   21.5038805  0.0041851  5138.16   <2e-16 ***
ORIGIN_SZPRSZ06   19.0191179  0.0117177  1623.11   <2e-16 ***
ORIGIN_SZPRSZ07   17.6397067  0.0162460  1085.79   <2e-16 ***
ORIGIN_SZPRSZ08   20.1557286  0.0062065  3247.54   <2e-16 ***
ORIGIN_SZQTSZ01   19.7019752  0.0066192  2976.48   <2e-16 ***
ORIGIN_SZQTSZ02   19.1166393  0.0061097  3128.89   <2e-16 ***
ORIGIN_SZQTSZ03   19.6783696  0.0055828  3524.84   <2e-16 ***
ORIGIN_SZQTSZ04   18.7213291  0.0072751  2573.33   <2e-16 ***
ORIGIN_SZQTSZ05   19.2498822  0.0062176  3096.03   <2e-16 ***
ORIGIN_SZQTSZ06   19.2514764  0.0065477  2940.17   <2e-16 ***
ORIGIN_SZQTSZ07   18.5197136  0.0095257  1944.18   <2e-16 ***
ORIGIN_SZQTSZ08   19.5698752  0.0061139  3200.89   <2e-16 ***
ORIGIN_SZQTSZ09   19.1865091  0.0069697  2752.84   <2e-16 ***
ORIGIN_SZQTSZ10   19.5636024  0.0064318  3041.72   <2e-16 ***
ORIGIN_SZQTSZ11   17.7046879  0.0143580  1233.09   <2e-16 ***
ORIGIN_SZQTSZ12   17.2545632  0.0186718   924.10   <2e-16 ***
ORIGIN_SZQTSZ13   19.4520621  0.0078806  2468.34   <2e-16 ***
ORIGIN_SZQTSZ14   18.1538401  0.0122079  1487.06   <2e-16 ***
ORIGIN_SZQTSZ15   19.4820765  0.0120857  1612.00   <2e-16 ***
ORIGIN_SZRCSZ01   18.2441435  0.0125024  1459.25   <2e-16 ***
ORIGIN_SZRCSZ06   18.7940051  0.0081961  2293.04   <2e-16 ***
ORIGIN_SZRVSZ01   16.7427655  0.0323719   517.20   <2e-16 ***
ORIGIN_SZRVSZ02   16.3244999  0.0276769   589.82   <2e-16 ***
ORIGIN_SZRVSZ03   16.6612734  0.0244941   680.22   <2e-16 ***
ORIGIN_SZRVSZ04   16.0867448  0.0556316   289.17   <2e-16 ***
ORIGIN_SZRVSZ05   17.0243564  0.0164105  1037.41   <2e-16 ***
ORIGIN_SZSBSZ01   20.0776122  0.0062300  3222.74   <2e-16 ***
ORIGIN_SZSBSZ02   19.2287441  0.0080821  2379.18   <2e-16 ***
ORIGIN_SZSBSZ03   20.7067645  0.0044850  4616.86   <2e-16 ***
ORIGIN_SZSBSZ04   20.7250948  0.0050470  4106.38   <2e-16 ***
ORIGIN_SZSBSZ05   19.7278256  0.0065344  3019.09   <2e-16 ***
ORIGIN_SZSBSZ06   18.8470088  0.0171009  1102.10   <2e-16 ***
ORIGIN_SZSBSZ07   19.3662073  0.0124339  1557.53   <2e-16 ***
ORIGIN_SZSBSZ08   18.9319472  0.0140580  1346.70   <2e-16 ***
ORIGIN_SZSBSZ09   19.1007690  0.0088532  2157.51   <2e-16 ***
ORIGIN_SZSESZ02   20.8772730  0.0041353  5048.56   <2e-16 ***
ORIGIN_SZSESZ03   20.9055777  0.0039251  5326.18   <2e-16 ***
ORIGIN_SZSESZ04   20.5620327  0.0046027  4467.36   <2e-16 ***
ORIGIN_SZSESZ05   19.4726179  0.0058631  3321.20   <2e-16 ***
ORIGIN_SZSESZ06   20.7293565  0.0045388  4567.19   <2e-16 ***
ORIGIN_SZSESZ07   17.6384101  0.0195694   901.33   <2e-16 ***
ORIGIN_SZSGSZ01   19.0908922  0.0085636  2229.30   <2e-16 ***
ORIGIN_SZSGSZ02   18.6118265  0.0101921  1826.10   <2e-16 ***
ORIGIN_SZSGSZ03   20.0122412  0.0050226  3984.45   <2e-16 ***
ORIGIN_SZSGSZ04   20.2430693  0.0046957  4311.02   <2e-16 ***
ORIGIN_SZSGSZ05   18.0306887  0.0107603  1675.67   <2e-16 ***
ORIGIN_SZSGSZ06   20.2968098  0.0044259  4585.94   <2e-16 ***
ORIGIN_SZSGSZ07   19.1175890  0.0062761  3046.11   <2e-16 ***
ORIGIN_SZSKSZ01   20.1055198  0.0085135  2361.62   <2e-16 ***
ORIGIN_SZSKSZ02   21.0090654  0.0055299  3799.19   <2e-16 ***
ORIGIN_SZSKSZ03   19.5974539  0.0080345  2439.18   <2e-16 ***
ORIGIN_SZSKSZ04   18.2951351  0.0275744   663.48   <2e-16 ***
ORIGIN_SZSKSZ05   19.4180023  0.0155539  1248.43   <2e-16 ***
ORIGIN_SZSLSZ01   17.0425036  0.0329343   517.47   <2e-16 ***
ORIGIN_SZSLSZ04   19.5216773  0.0076566  2549.64   <2e-16 ***
ORIGIN_SZSRSZ01   16.9882761  0.0162024  1048.50   <2e-16 ***
ORIGIN_SZTHSZ01   17.8848178  0.0488525   366.10   <2e-16 ***
ORIGIN_SZTHSZ03   18.3280287  0.0223520   819.97   <2e-16 ***
ORIGIN_SZTHSZ04   17.2887838  0.0286183   604.12   <2e-16 ***
ORIGIN_SZTHSZ06   17.7137131  0.0183217   966.82   <2e-16 ***
ORIGIN_SZTMSZ01   20.4891959  0.0056272  3641.09   <2e-16 ***
ORIGIN_SZTMSZ02   22.1443734  0.0037176  5956.62   <2e-16 ***
ORIGIN_SZTMSZ03   21.4784634  0.0040345  5323.72   <2e-16 ***
ORIGIN_SZTMSZ04   20.8862351  0.0049749  4198.36   <2e-16 ***
ORIGIN_SZTMSZ05   19.5080323  0.0112766  1729.95   <2e-16 ***
ORIGIN_SZTNSZ01   17.8426257  0.0128114  1392.71   <2e-16 ***
ORIGIN_SZTNSZ02   17.9839752  0.0098214  1831.10   <2e-16 ***
ORIGIN_SZTNSZ03   17.6609617  0.0134588  1312.22   <2e-16 ***
ORIGIN_SZTNSZ04   19.3461963  0.0073514  2631.63   <2e-16 ***
ORIGIN_SZTPSZ01   19.1667325  0.0065559  2923.58   <2e-16 ***
ORIGIN_SZTPSZ02   20.3243731  0.0041187  4934.65   <2e-16 ***
ORIGIN_SZTPSZ03   19.2048306  0.0059339  3236.45   <2e-16 ***
ORIGIN_SZTPSZ04   19.2413896  0.0054565  3526.34   <2e-16 ***
ORIGIN_SZTPSZ05   19.4295659  0.0058440  3324.68   <2e-16 ***
ORIGIN_SZTPSZ06   19.7101444  0.0054775  3598.37   <2e-16 ***
ORIGIN_SZTPSZ07   19.5596100  0.0060214  3248.36   <2e-16 ***
ORIGIN_SZTPSZ08   18.7979693  0.0095641  1965.47   <2e-16 ***
ORIGIN_SZTPSZ09   19.1027148  0.0066795  2859.90   <2e-16 ***
ORIGIN_SZTPSZ10   18.9714615  0.0075921  2498.83   <2e-16 ***
ORIGIN_SZTPSZ11   19.8630857  0.0053908  3684.61   <2e-16 ***
ORIGIN_SZTPSZ12   19.2775614  0.0065625  2937.55   <2e-16 ***
ORIGIN_SZTSSZ01   17.9597288  0.0478912   375.01   <2e-16 ***
ORIGIN_SZTSSZ02   20.9546971  0.0081666  2565.89   <2e-16 ***
ORIGIN_SZTSSZ03   20.4055112  0.0084443  2416.47   <2e-16 ***
ORIGIN_SZTSSZ04   20.7483687  0.0088682  2339.63   <2e-16 ***
ORIGIN_SZTSSZ05   19.9628531  0.0151293  1319.48   <2e-16 ***
ORIGIN_SZTSSZ06   21.5811362  0.0178108  1211.69   <2e-16 ***
ORIGIN_SZWCSZ01   20.7108540  0.0086335  2398.89   <2e-16 ***
ORIGIN_SZWCSZ02   17.6397892  0.0328833   536.44   <2e-16 ***
ORIGIN_SZWCSZ03   14.8390913  0.1240692   119.60   <2e-16 ***
ORIGIN_SZWDSZ01   21.2240606  0.0037448  5667.58   <2e-16 ***
ORIGIN_SZWDSZ02   20.7729893  0.0044409  4677.64   <2e-16 ***
ORIGIN_SZWDSZ03   21.3964805  0.0041502  5155.51   <2e-16 ***
ORIGIN_SZWDSZ04   21.1536722  0.0048407  4369.96   <2e-16 ***
ORIGIN_SZWDSZ05   20.4690390  0.0051670  3961.47   <2e-16 ***
ORIGIN_SZWDSZ06   20.6745506  0.0049056  4214.51   <2e-16 ***
ORIGIN_SZWDSZ07   19.1813218  0.0082633  2321.27   <2e-16 ***
ORIGIN_SZWDSZ08   19.2929231  0.0080603  2393.57   <2e-16 ***
ORIGIN_SZWDSZ09   21.3866290  0.0039905  5359.38   <2e-16 ***
ORIGIN_SZYSSZ01   19.5852726  0.0057381  3413.21   <2e-16 ***
ORIGIN_SZYSSZ02   20.7543673  0.0047970  4326.50   <2e-16 ***
ORIGIN_SZYSSZ03   21.7355719  0.0039706  5474.07   <2e-16 ***
ORIGIN_SZYSSZ04   20.9419376  0.0043328  4833.39   <2e-16 ***
ORIGIN_SZYSSZ05   20.1714855  0.0058245  3463.24   <2e-16 ***
ORIGIN_SZYSSZ06   19.2486053  0.0116698  1649.44   <2e-16 ***
ORIGIN_SZYSSZ07   18.7339402  0.0141499  1323.97   <2e-16 ***
ORIGIN_SZYSSZ08   19.9390490  0.0060983  3269.63   <2e-16 ***
ORIGIN_SZYSSZ09   20.9908642  0.0039987  5249.38   <2e-16 ***
log(SCHOOL_COUNT)  0.3672258  0.0004589   800.19   <2e-16 ***
log(dist)         -1.6558900  0.0004019 -4120.59   <2e-16 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

(Dispersion parameter for poisson family taken to be 1)

    Null deviance: 189463537  on 14471  degrees of freedom
Residual deviance:  16430417  on 14190  degrees of freedom
AIC: 16520118

Number of Fisher Scoring iterations: 6
Note

Use file from elearn, there is no BUSINESS_COUNT. I have separated ex4 and ex4.1 for learning purpose

Goodness of fit

CalcRSquared <- function(observed, estimated){
  r <- cor(observed, estimated)
  R2 <- r^2
  R2
}
CalcRSquared(orcSIM_Poisson$data$MORNING_PEAK, orcSIM_Poisson$fitted.values)
[1] 0.423468

Doubly constrained model

dbcSIM_Poisson <- glm(formula = MORNING_PEAK ~ 
                ORIGIN_SZ + 
                DESTIN_SZ +
                log(dist),
              family = poisson(link = "log"),
              data = inter_zonal_flow,
              na.action = na.exclude)
summary(dbcSIM_Poisson)

Call:
glm(formula = MORNING_PEAK ~ ORIGIN_SZ + DESTIN_SZ + log(dist), 
    family = poisson(link = "log"), data = inter_zonal_flow, 
    na.action = na.exclude)

Coefficients:
                  Estimate Std. Error   z value Pr(>|z|)    
(Intercept)     21.8312374  0.0059160  3690.190  < 2e-16 ***
ORIGIN_SZAMSZ02  0.5263502  0.0048031   109.585  < 2e-16 ***
ORIGIN_SZAMSZ03  0.3139982  0.0049254    63.751  < 2e-16 ***
ORIGIN_SZAMSZ04 -0.2146257  0.0053639   -40.013  < 2e-16 ***
ORIGIN_SZAMSZ05 -0.1890446  0.0060386   -31.306  < 2e-16 ***
ORIGIN_SZAMSZ06  0.1539201  0.0054401    28.294  < 2e-16 ***
ORIGIN_SZAMSZ07 -0.9826565  0.0098676   -99.584  < 2e-16 ***
ORIGIN_SZAMSZ08 -0.4488417  0.0093070   -48.226  < 2e-16 ***
ORIGIN_SZAMSZ09  0.0713474  0.0057402    12.429  < 2e-16 ***
ORIGIN_SZAMSZ10  0.4313742  0.0050370    85.641  < 2e-16 ***
ORIGIN_SZAMSZ11 -1.4712226  0.0131178  -112.154  < 2e-16 ***
ORIGIN_SZAMSZ12 -1.7250733  0.0111603  -154.573  < 2e-16 ***
ORIGIN_SZBDSZ01  0.8810576  0.0048168   182.914  < 2e-16 ***
ORIGIN_SZBDSZ02  0.1100240  0.0055529    19.814  < 2e-16 ***
ORIGIN_SZBDSZ03  0.3606166  0.0050672    71.167  < 2e-16 ***
ORIGIN_SZBDSZ04  1.4624347  0.0044212   330.781  < 2e-16 ***
ORIGIN_SZBDSZ05  0.6207557  0.0050843   122.092  < 2e-16 ***
ORIGIN_SZBDSZ06  0.6712973  0.0051953   129.214  < 2e-16 ***
ORIGIN_SZBDSZ07 -1.2338669  0.0100775  -122.437  < 2e-16 ***
ORIGIN_SZBDSZ08 -1.0444562  0.0094555  -110.460  < 2e-16 ***
ORIGIN_SZBKSZ01 -0.2838426  0.0071354   -39.780  < 2e-16 ***
ORIGIN_SZBKSZ02  0.5550522  0.0059014    94.054  < 2e-16 ***
ORIGIN_SZBKSZ03  0.7396640  0.0056796   130.231  < 2e-16 ***
ORIGIN_SZBKSZ04 -0.2242451  0.0067482   -33.230  < 2e-16 ***
ORIGIN_SZBKSZ05 -0.2371614  0.0069386   -34.180  < 2e-16 ***
ORIGIN_SZBKSZ06 -0.1413812  0.0065035   -21.739  < 2e-16 ***
ORIGIN_SZBKSZ07  0.7089989  0.0051843   136.758  < 2e-16 ***
ORIGIN_SZBKSZ08 -0.0907065  0.0059157   -15.333  < 2e-16 ***
ORIGIN_SZBKSZ09 -0.1775146  0.0063302   -28.042  < 2e-16 ***
ORIGIN_SZBLSZ01 -2.3684539  0.0154280  -153.516  < 2e-16 ***
ORIGIN_SZBLSZ02 -2.8078475  0.0197839  -141.926  < 2e-16 ***
ORIGIN_SZBLSZ03 -3.3122763  0.0466091   -71.065  < 2e-16 ***
ORIGIN_SZBLSZ04 -2.6770542  0.0241793  -110.717  < 2e-16 ***
ORIGIN_SZBMSZ01  0.0618035  0.0059400    10.405  < 2e-16 ***
ORIGIN_SZBMSZ02 -1.3535767  0.0073741  -183.557  < 2e-16 ***
ORIGIN_SZBMSZ03 -0.7569095  0.0063187  -119.790  < 2e-16 ***
ORIGIN_SZBMSZ04 -0.2949304  0.0059603   -49.483  < 2e-16 ***
ORIGIN_SZBMSZ05 -2.6131992  0.0172376  -151.599  < 2e-16 ***
ORIGIN_SZBMSZ06 -3.0315024  0.0185502  -163.422  < 2e-16 ***
ORIGIN_SZBMSZ07 -0.6962524  0.0064068  -108.674  < 2e-16 ***
ORIGIN_SZBMSZ08 -0.9310730  0.0064541  -144.261  < 2e-16 ***
ORIGIN_SZBMSZ09 -1.2911253  0.0092047  -140.268  < 2e-16 ***
ORIGIN_SZBMSZ10 -1.6687004  0.0095708  -174.353  < 2e-16 ***
ORIGIN_SZBMSZ11 -1.1152794  0.0072027  -154.841  < 2e-16 ***
ORIGIN_SZBMSZ12 -1.5323954  0.0099932  -153.344  < 2e-16 ***
ORIGIN_SZBMSZ13 -0.6267376  0.0065863   -95.158  < 2e-16 ***
ORIGIN_SZBMSZ14 -1.0475467  0.0072472  -144.544  < 2e-16 ***
ORIGIN_SZBMSZ15 -0.5049444  0.0067390   -74.929  < 2e-16 ***
ORIGIN_SZBMSZ16 -1.5282897  0.0099545  -153.527  < 2e-16 ***
ORIGIN_SZBMSZ17 -1.5722349  0.0161533   -97.332  < 2e-16 ***
ORIGIN_SZBPSZ01  0.5814175  0.0062904    92.429  < 2e-16 ***
ORIGIN_SZBPSZ02  0.0875442  0.0072190    12.127  < 2e-16 ***
ORIGIN_SZBPSZ03  0.3358227  0.0070460    47.662  < 2e-16 ***
ORIGIN_SZBPSZ04  0.6507586  0.0057726   112.733  < 2e-16 ***
ORIGIN_SZBPSZ05  0.9502124  0.0052971   179.384  < 2e-16 ***
ORIGIN_SZBPSZ06 -1.0480314  0.0098191  -106.734  < 2e-16 ***
ORIGIN_SZBPSZ07 -0.5467931  0.0091676   -59.644  < 2e-16 ***
ORIGIN_SZBSSZ01  0.2998334  0.0059193    50.654  < 2e-16 ***
ORIGIN_SZBSSZ02  0.2841036  0.0050863    55.856  < 2e-16 ***
ORIGIN_SZBSSZ03 -0.2331505  0.0056565   -41.218  < 2e-16 ***
ORIGIN_SZBTSZ01  0.0987284  0.0063715    15.495  < 2e-16 ***
ORIGIN_SZBTSZ02 -0.6261229  0.0084604   -74.006  < 2e-16 ***
ORIGIN_SZBTSZ03 -0.4326963  0.0073452   -58.909  < 2e-16 ***
ORIGIN_SZBTSZ04 -1.4998668  0.0110013  -136.336  < 2e-16 ***
ORIGIN_SZBTSZ05 -0.9564768  0.0122202   -78.270  < 2e-16 ***
ORIGIN_SZBTSZ06 -1.2853131  0.0099328  -129.401  < 2e-16 ***
ORIGIN_SZBTSZ07 -2.3870991  0.0144589  -165.096  < 2e-16 ***
ORIGIN_SZBTSZ08 -1.3715855  0.0113825  -120.499  < 2e-16 ***
ORIGIN_SZCBSZ01 -3.5940232  0.0548979   -65.467  < 2e-16 ***
ORIGIN_SZCCSZ01 -0.7008220  0.0140373   -49.926  < 2e-16 ***
ORIGIN_SZCHSZ01 -0.9109524  0.0122869   -74.140  < 2e-16 ***
ORIGIN_SZCHSZ02 -0.8566547  0.0088749   -96.526  < 2e-16 ***
ORIGIN_SZCHSZ03  1.1153731  0.0066136   168.650  < 2e-16 ***
ORIGIN_SZCKSZ01  0.3001815  0.0058548    51.271  < 2e-16 ***
ORIGIN_SZCKSZ02  0.7185711  0.0060595   118.585  < 2e-16 ***
ORIGIN_SZCKSZ03  1.1389824  0.0053179   214.178  < 2e-16 ***
ORIGIN_SZCKSZ04  1.6281772  0.0054761   297.324  < 2e-16 ***
ORIGIN_SZCKSZ05  0.8338470  0.0064178   129.927  < 2e-16 ***
ORIGIN_SZCKSZ06  0.6528993  0.0082375    79.259  < 2e-16 ***
ORIGIN_SZCLSZ01 -0.7174758  0.0082123   -87.366  < 2e-16 ***
ORIGIN_SZCLSZ02 -1.7513100  0.0139062  -125.938  < 2e-16 ***
ORIGIN_SZCLSZ03 -1.0362873  0.0085485  -121.224  < 2e-16 ***
ORIGIN_SZCLSZ04  0.6160017  0.0051276   120.136  < 2e-16 ***
ORIGIN_SZCLSZ05 -2.1005122  0.0150228  -139.821  < 2e-16 ***
ORIGIN_SZCLSZ06  0.7252108  0.0049447   146.665  < 2e-16 ***
ORIGIN_SZCLSZ07 -0.5343482  0.0062500   -85.496  < 2e-16 ***
ORIGIN_SZCLSZ08 -0.2153408  0.0067571   -31.869  < 2e-16 ***
ORIGIN_SZCLSZ09 -1.8019961  0.0169078  -106.578  < 2e-16 ***
ORIGIN_SZDTSZ02 -3.9057711  0.0834668   -46.794  < 2e-16 ***
ORIGIN_SZDTSZ03 -3.4152419  0.0738650   -46.236  < 2e-16 ***
ORIGIN_SZDTSZ13 -3.0183438  0.0315257   -95.742  < 2e-16 ***
ORIGIN_SZGLSZ01 -1.7812384  0.0099367  -179.258  < 2e-16 ***
ORIGIN_SZGLSZ02 -0.1074991  0.0054325   -19.788  < 2e-16 ***
ORIGIN_SZGLSZ03 -0.2461106  0.0057176   -43.045  < 2e-16 ***
ORIGIN_SZGLSZ04  0.8657186  0.0046413   186.524  < 2e-16 ***
ORIGIN_SZGLSZ05  0.5871393  0.0047939   122.477  < 2e-16 ***
ORIGIN_SZHGSZ01  0.3543819  0.0050461    70.229  < 2e-16 ***
ORIGIN_SZHGSZ02  0.4218178  0.0050820    83.003  < 2e-16 ***
ORIGIN_SZHGSZ03  0.2411309  0.0054241    44.456  < 2e-16 ***
ORIGIN_SZHGSZ04  0.8180622  0.0046153   177.252  < 2e-16 ***
ORIGIN_SZHGSZ05  1.2173687  0.0045655   266.647  < 2e-16 ***
ORIGIN_SZHGSZ06 -0.1826300  0.0058214   -31.372  < 2e-16 ***
ORIGIN_SZHGSZ07  0.3172839  0.0050733    62.540  < 2e-16 ***
ORIGIN_SZHGSZ08 -0.1151369  0.0057067   -20.176  < 2e-16 ***
ORIGIN_SZHGSZ09 -1.2873441  0.0091690  -140.401  < 2e-16 ***
ORIGIN_SZHGSZ10 -3.3783178  0.0424682   -79.549  < 2e-16 ***
ORIGIN_SZJESZ01  0.4859234  0.0055927    86.885  < 2e-16 ***
ORIGIN_SZJESZ02  0.1766088  0.0055800    31.650  < 2e-16 ***
ORIGIN_SZJESZ03 -0.2177441  0.0059535   -36.574  < 2e-16 ***
ORIGIN_SZJESZ04 -1.5532182  0.0104526  -148.597  < 2e-16 ***
ORIGIN_SZJESZ05 -2.3332926  0.0142701  -163.509  < 2e-16 ***
ORIGIN_SZJESZ06  0.3007382  0.0055019    54.661  < 2e-16 ***
ORIGIN_SZJESZ07 -1.9687994  0.0121092  -162.587  < 2e-16 ***
ORIGIN_SZJESZ08 -1.3032070  0.0122024  -106.800  < 2e-16 ***
ORIGIN_SZJESZ09  0.5762635  0.0058766    98.061  < 2e-16 ***
ORIGIN_SZJESZ10 -1.4423113  0.0194773   -74.051  < 2e-16 ***
ORIGIN_SZJESZ11 -1.9720897  0.0200811   -98.206  < 2e-16 ***
ORIGIN_SZJWSZ01  0.3808627  0.0071357    53.374  < 2e-16 ***
ORIGIN_SZJWSZ02  0.7963999  0.0053150   149.840  < 2e-16 ***
ORIGIN_SZJWSZ03  1.5429636  0.0049961   308.834  < 2e-16 ***
ORIGIN_SZJWSZ04  0.6410760  0.0056711   113.042  < 2e-16 ***
ORIGIN_SZJWSZ05 -2.1571049  0.0133584  -161.479  < 2e-16 ***
ORIGIN_SZJWSZ06 -1.5174532  0.0113384  -133.833  < 2e-16 ***
ORIGIN_SZJWSZ07 -2.7089963  0.0280439   -96.598  < 2e-16 ***
ORIGIN_SZJWSZ08  1.5343415  0.0051711   296.713  < 2e-16 ***
ORIGIN_SZJWSZ09  1.8837410  0.0048845   385.656  < 2e-16 ***
ORIGIN_SZKLSZ01  0.1081286  0.0053307    20.284  < 2e-16 ***
ORIGIN_SZKLSZ02 -0.8844695  0.0067728  -130.591  < 2e-16 ***
ORIGIN_SZKLSZ03 -0.6872640  0.0062857  -109.337  < 2e-16 ***
ORIGIN_SZKLSZ04 -2.2090319  0.0122440  -180.418  < 2e-16 ***
ORIGIN_SZKLSZ05 -1.1728726  0.0110765  -105.888  < 2e-16 ***
ORIGIN_SZKLSZ06 -6.1162315  0.1857789   -32.922  < 2e-16 ***
ORIGIN_SZKLSZ07 -1.4082749  0.0092299  -152.578  < 2e-16 ***
ORIGIN_SZKLSZ08 -1.7781551  0.0104682  -169.862  < 2e-16 ***
ORIGIN_SZLKSZ01 -2.0531568  0.0398803   -51.483  < 2e-16 ***
ORIGIN_SZMDSZ01 -0.8825639  0.0287621   -30.685  < 2e-16 ***
ORIGIN_SZMDSZ02 -0.6219993  0.0107388   -57.921  < 2e-16 ***
ORIGIN_SZMDSZ03 -2.0840156  0.0173117  -120.382  < 2e-16 ***
ORIGIN_SZMPSZ01 -0.9659093  0.0086972  -111.060  < 2e-16 ***
ORIGIN_SZMPSZ02 -1.0411153  0.0073403  -141.836  < 2e-16 ***
ORIGIN_SZMPSZ03  0.0001659  0.0059401     0.028 0.977719    
ORIGIN_SZMUSZ02 -3.7599031  0.1037937   -36.225  < 2e-16 ***
ORIGIN_SZNTSZ01 -3.0388366  0.0355325   -85.523  < 2e-16 ***
ORIGIN_SZNTSZ02 -3.4230640  0.0235902  -145.106  < 2e-16 ***
ORIGIN_SZNTSZ03 -0.9094796  0.0082551  -110.172  < 2e-16 ***
ORIGIN_SZNTSZ05 -4.0861681  0.0499630   -81.784  < 2e-16 ***
ORIGIN_SZNTSZ06 -3.9497128  0.0565388   -69.858  < 2e-16 ***
ORIGIN_SZNVSZ01  0.3235636  0.0049439    65.447  < 2e-16 ***
ORIGIN_SZNVSZ02 -0.6946748  0.0070536   -98.485  < 2e-16 ***
ORIGIN_SZNVSZ03 -1.0540196  0.0083781  -125.806  < 2e-16 ***
ORIGIN_SZNVSZ04 -0.9897977  0.0093463  -105.903  < 2e-16 ***
ORIGIN_SZNVSZ05 -2.2578432  0.0169180  -133.458  < 2e-16 ***
ORIGIN_SZPGSZ01  0.2399827  0.0130436    18.398  < 2e-16 ***
ORIGIN_SZPGSZ02 -0.3352342  0.0078451   -42.732  < 2e-16 ***
ORIGIN_SZPGSZ03  0.9515148  0.0051376   185.207  < 2e-16 ***
ORIGIN_SZPGSZ04  1.3998952  0.0047991   291.697  < 2e-16 ***
ORIGIN_SZPGSZ05  0.4451629  0.0063423    70.189  < 2e-16 ***
ORIGIN_SZPLSZ01 -0.9705918  0.0122781   -79.050  < 2e-16 ***
ORIGIN_SZPLSZ02 -1.0670151  0.0153358   -69.577  < 2e-16 ***
ORIGIN_SZPLSZ03 -2.1229124  0.0373527   -56.834  < 2e-16 ***
ORIGIN_SZPLSZ04 -3.0911932  0.0371296   -83.254  < 2e-16 ***
ORIGIN_SZPLSZ05 -2.1705708  0.0226085   -96.007  < 2e-16 ***
ORIGIN_SZPNSZ01  0.9052637  0.0065952   137.262  < 2e-16 ***
ORIGIN_SZPNSZ02 -0.1720425  0.0125658   -13.691  < 2e-16 ***
ORIGIN_SZPNSZ03 -2.3973459  0.0201408  -119.029  < 2e-16 ***
ORIGIN_SZPNSZ04 -3.4483689  0.0343741  -100.319  < 2e-16 ***
ORIGIN_SZPNSZ05 -2.0588530  0.0282328   -72.924  < 2e-16 ***
ORIGIN_SZPRSZ01 -0.6399015  0.0120470   -53.117  < 2e-16 ***
ORIGIN_SZPRSZ02  0.8122270  0.0050886   159.617  < 2e-16 ***
ORIGIN_SZPRSZ03  0.3990960  0.0051810    77.031  < 2e-16 ***
ORIGIN_SZPRSZ04 -0.8485348  0.0079236  -107.089  < 2e-16 ***
ORIGIN_SZPRSZ05  0.8008791  0.0048532   165.021  < 2e-16 ***
ORIGIN_SZPRSZ06 -1.4498806  0.0121422  -119.408  < 2e-16 ***
ORIGIN_SZPRSZ07 -3.2025045  0.0167118  -191.631  < 2e-16 ***
ORIGIN_SZPRSZ08 -0.5862269  0.0067255   -87.165  < 2e-16 ***
ORIGIN_SZQTSZ01 -0.1859270  0.0075531   -24.616  < 2e-16 ***
ORIGIN_SZQTSZ02 -0.8715122  0.0068124  -127.929  < 2e-16 ***
ORIGIN_SZQTSZ03 -0.1259816  0.0064796   -19.443  < 2e-16 ***
ORIGIN_SZQTSZ04 -1.4620032  0.0079848  -183.098  < 2e-16 ***
ORIGIN_SZQTSZ05 -0.6675643  0.0069616   -95.892  < 2e-16 ***
ORIGIN_SZQTSZ06 -0.8190026  0.0072713  -112.634  < 2e-16 ***
ORIGIN_SZQTSZ07 -1.5189403  0.0099864  -152.101  < 2e-16 ***
ORIGIN_SZQTSZ08 -0.4976238  0.0067874   -73.316  < 2e-16 ***
ORIGIN_SZQTSZ09 -0.9006162  0.0075978  -118.536  < 2e-16 ***
ORIGIN_SZQTSZ10 -0.6690184  0.0071574   -93.473  < 2e-16 ***
ORIGIN_SZQTSZ11 -2.5203437  0.0147000  -171.452  < 2e-16 ***
ORIGIN_SZQTSZ12 -3.0461675  0.0190193  -160.162  < 2e-16 ***
ORIGIN_SZQTSZ13 -0.7501068  0.0084481   -88.791  < 2e-16 ***
ORIGIN_SZQTSZ14 -1.9321849  0.0126114  -153.209  < 2e-16 ***
ORIGIN_SZQTSZ15 -0.9576828  0.0127157   -75.315  < 2e-16 ***
ORIGIN_SZRCSZ01 -1.8167951  0.0129234  -140.582  < 2e-16 ***
ORIGIN_SZRCSZ06 -0.5560563  0.0090507   -61.438  < 2e-16 ***
ORIGIN_SZRVSZ01 -2.8862570  0.0325532   -88.663  < 2e-16 ***
ORIGIN_SZRVSZ02 -3.1555662  0.0281279  -112.186  < 2e-16 ***
ORIGIN_SZRVSZ03 -2.9836089  0.0248449  -120.089  < 2e-16 ***
ORIGIN_SZRVSZ04 -3.5520422  0.0561371   -63.274  < 2e-16 ***
ORIGIN_SZRVSZ05 -2.5866584  0.0180382  -143.399  < 2e-16 ***
ORIGIN_SZSBSZ01  0.2867444  0.0071098    40.331  < 2e-16 ***
ORIGIN_SZSBSZ02 -0.9012334  0.0087262  -103.278  < 2e-16 ***
ORIGIN_SZSBSZ03  0.8311038  0.0055422   149.958  < 2e-16 ***
ORIGIN_SZSBSZ04  0.4044170  0.0062047    65.179  < 2e-16 ***
ORIGIN_SZSBSZ05 -0.2661845  0.0074162   -35.892  < 2e-16 ***
ORIGIN_SZSBSZ06 -0.9023075  0.0175046   -51.547  < 2e-16 ***
ORIGIN_SZSBSZ07  0.0505870  0.0131317     3.852 0.000117 ***
ORIGIN_SZSBSZ08 -1.1158011  0.0145416   -76.732  < 2e-16 ***
ORIGIN_SZSBSZ09 -0.9682835  0.0095396  -101.501  < 2e-16 ***
ORIGIN_SZSESZ02  1.1452735  0.0047810   239.548  < 2e-16 ***
ORIGIN_SZSESZ03  1.2815277  0.0045677   280.564  < 2e-16 ***
ORIGIN_SZSESZ04  0.8085857  0.0052756   153.269  < 2e-16 ***
ORIGIN_SZSESZ05 -0.2329413  0.0063113   -36.909  < 2e-16 ***
ORIGIN_SZSESZ06  1.0576879  0.0049909   211.925  < 2e-16 ***
ORIGIN_SZSESZ07 -2.3165908  0.0196831  -117.695  < 2e-16 ***
ORIGIN_SZSGSZ01 -0.6606350  0.0088079   -75.005  < 2e-16 ***
ORIGIN_SZSGSZ02 -1.3638984  0.0104040  -131.094  < 2e-16 ***
ORIGIN_SZSGSZ03  0.1152591  0.0054649    21.091  < 2e-16 ***
ORIGIN_SZSGSZ04  0.2954067  0.0050865    58.077  < 2e-16 ***
ORIGIN_SZSGSZ05 -2.0792678  0.0109882  -189.227  < 2e-16 ***
ORIGIN_SZSGSZ06  0.4563227  0.0048880    93.356  < 2e-16 ***
ORIGIN_SZSGSZ07 -0.8955254  0.0067100  -133.461  < 2e-16 ***
ORIGIN_SZSKSZ01 -0.3184402  0.0093032   -34.229  < 2e-16 ***
ORIGIN_SZSKSZ02  1.1160484  0.0063851   174.790  < 2e-16 ***
ORIGIN_SZSKSZ03 -0.2566692  0.0086021   -29.838  < 2e-16 ***
ORIGIN_SZSKSZ04 -1.5781827  0.0279394   -56.486  < 2e-16 ***
ORIGIN_SZSKSZ05 -0.2724361  0.0163597   -16.653  < 2e-16 ***
ORIGIN_SZSLSZ01 -2.4458625  0.0330301   -74.050  < 2e-16 ***
ORIGIN_SZSLSZ04 -0.0987076  0.0079626   -12.396  < 2e-16 ***
ORIGIN_SZSRSZ01 -2.2584977  0.0176647  -127.854  < 2e-16 ***
ORIGIN_SZTHSZ01 -2.5878524  0.0489998   -52.814  < 2e-16 ***
ORIGIN_SZTHSZ03 -0.8101746  0.0226814   -35.720  < 2e-16 ***
ORIGIN_SZTHSZ04 -2.4186655  0.0288663   -83.789  < 2e-16 ***
ORIGIN_SZTHSZ06 -1.7080541  0.0186353   -91.657  < 2e-16 ***
ORIGIN_SZTMSZ01 -0.2193476  0.0061823   -35.480  < 2e-16 ***
ORIGIN_SZTMSZ02  1.7772464  0.0043394   409.558  < 2e-16 ***
ORIGIN_SZTMSZ03  1.0051343  0.0046055   218.249  < 2e-16 ***
ORIGIN_SZTMSZ04  0.1642370  0.0055078    29.819  < 2e-16 ***
ORIGIN_SZTMSZ05 -1.2878706  0.0114828  -112.157  < 2e-16 ***
ORIGIN_SZTNSZ01 -1.7163504  0.0131268  -130.751  < 2e-16 ***
ORIGIN_SZTNSZ02 -1.6508988  0.0103851  -158.968  < 2e-16 ***
ORIGIN_SZTNSZ03 -2.1545577  0.0137947  -156.187  < 2e-16 ***
ORIGIN_SZTNSZ04 -0.3949120  0.0078496   -50.310  < 2e-16 ***
ORIGIN_SZTPSZ01 -0.8058100  0.0069916  -115.253  < 2e-16 ***
ORIGIN_SZTPSZ02  0.5369060  0.0047272   113.577  < 2e-16 ***
ORIGIN_SZTPSZ03 -0.7779333  0.0064278  -121.027  < 2e-16 ***
ORIGIN_SZTPSZ04 -0.8153581  0.0061387  -132.823  < 2e-16 ***
ORIGIN_SZTPSZ05 -0.5073676  0.0067771   -74.865  < 2e-16 ***
ORIGIN_SZTPSZ06  0.0847301  0.0065717    12.893  < 2e-16 ***
ORIGIN_SZTPSZ07 -0.5839519  0.0066148   -88.280  < 2e-16 ***
ORIGIN_SZTPSZ08 -1.0577941  0.0098480  -107.412  < 2e-16 ***
ORIGIN_SZTPSZ09 -0.9067707  0.0071367  -127.057  < 2e-16 ***
ORIGIN_SZTPSZ10 -1.1362091  0.0080905  -140.438  < 2e-16 ***
ORIGIN_SZTPSZ11 -0.2374621  0.0059472   -39.928  < 2e-16 ***
ORIGIN_SZTPSZ12 -0.8028874  0.0069663  -115.253  < 2e-16 ***
ORIGIN_SZTSSZ01 -2.7809271  0.0482843   -57.595  < 2e-16 ***
ORIGIN_SZTSSZ02  0.0425804  0.0105088     4.052 5.08e-05 ***
ORIGIN_SZTSSZ03  0.1142369  0.0109412    10.441  < 2e-16 ***
ORIGIN_SZTSSZ04 -0.6186261  0.0116324   -53.181  < 2e-16 ***
ORIGIN_SZTSSZ05 -1.0846732  0.0173555   -62.497  < 2e-16 ***
ORIGIN_SZTSSZ06  0.3980173  0.0198100    20.092  < 2e-16 ***
ORIGIN_SZWCSZ01  1.3545143  0.0092002   147.227  < 2e-16 ***
ORIGIN_SZWCSZ02 -2.9863278  0.0330906   -90.247  < 2e-16 ***
ORIGIN_SZWCSZ03 -5.0504916  0.1241385   -40.684  < 2e-16 ***
ORIGIN_SZWDSZ01  1.5238429  0.0049404   308.448  < 2e-16 ***
ORIGIN_SZWDSZ02  0.2832576  0.0056218    50.386  < 2e-16 ***
ORIGIN_SZWDSZ03  1.3702524  0.0053266   257.245  < 2e-16 ***
ORIGIN_SZWDSZ04  1.0248225  0.0059272   172.903  < 2e-16 ***
ORIGIN_SZWDSZ05  0.2356778  0.0060587    38.899  < 2e-16 ***
ORIGIN_SZWDSZ06  0.3146925  0.0059919    52.520  < 2e-16 ***
ORIGIN_SZWDSZ07 -1.4971897  0.0091243  -164.088  < 2e-16 ***
ORIGIN_SZWDSZ08 -0.8894079  0.0087414  -101.747  < 2e-16 ***
ORIGIN_SZWDSZ09  1.4437633  0.0053160   271.590  < 2e-16 ***
ORIGIN_SZYSSZ01 -0.2519398  0.0064443   -39.095  < 2e-16 ***
ORIGIN_SZYSSZ02  0.8726785  0.0057658   151.354  < 2e-16 ***
ORIGIN_SZYSSZ03  1.7868139  0.0050674   352.611  < 2e-16 ***
ORIGIN_SZYSSZ04  0.8418040  0.0051738   162.704  < 2e-16 ***
ORIGIN_SZYSSZ05  0.4292096  0.0062520    68.652  < 2e-16 ***
ORIGIN_SZYSSZ06 -0.7459961  0.0119123   -62.624  < 2e-16 ***
ORIGIN_SZYSSZ07 -0.8422281  0.0144559   -58.262  < 2e-16 ***
ORIGIN_SZYSSZ08  0.1829428  0.0067885    26.949  < 2e-16 ***
ORIGIN_SZYSSZ09  1.1159712  0.0050760   219.853  < 2e-16 ***
DESTIN_SZAMSZ02  0.0694567  0.0045966    15.111  < 2e-16 ***
DESTIN_SZAMSZ03  0.0760100  0.0044639    17.028  < 2e-16 ***
DESTIN_SZAMSZ04 -1.1306391  0.0064373  -175.639  < 2e-16 ***
DESTIN_SZAMSZ05 -1.0751133  0.0065164  -164.985  < 2e-16 ***
DESTIN_SZAMSZ06 -0.9624298  0.0065937  -145.962  < 2e-16 ***
DESTIN_SZAMSZ07 -1.5060319  0.0097616  -154.281  < 2e-16 ***
DESTIN_SZAMSZ08 -0.4813202  0.0069794   -68.963  < 2e-16 ***
DESTIN_SZAMSZ09 -1.0220675  0.0066313  -154.129  < 2e-16 ***
DESTIN_SZAMSZ10  0.1235142  0.0047044    26.255  < 2e-16 ***
DESTIN_SZAMSZ11 -0.8917993  0.0088519  -100.746  < 2e-16 ***
DESTIN_SZAMSZ12  0.0195208  0.0051704     3.775 0.000160 ***
DESTIN_SZBDSZ01  0.9736349  0.0042757   227.713  < 2e-16 ***
DESTIN_SZBDSZ02 -0.1969470  0.0055284   -35.625  < 2e-16 ***
DESTIN_SZBDSZ03  0.1266471  0.0050786    24.938  < 2e-16 ***
DESTIN_SZBDSZ04  1.1608485  0.0041956   276.684  < 2e-16 ***
DESTIN_SZBDSZ05  0.9293840  0.0044412   209.265  < 2e-16 ***
DESTIN_SZBDSZ06  0.4090567  0.0050300    81.323  < 2e-16 ***
DESTIN_SZBDSZ07 -0.8171478  0.0098945   -82.586  < 2e-16 ***
DESTIN_SZBDSZ08 -1.5895287  0.0111632  -142.391  < 2e-16 ***
DESTIN_SZBKSZ01 -1.3793311  0.0072145  -191.189  < 2e-16 ***
DESTIN_SZBKSZ02 -0.5253670  0.0061879   -84.903  < 2e-16 ***
DESTIN_SZBKSZ03 -1.0095362  0.0065426  -154.301  < 2e-16 ***
DESTIN_SZBKSZ04 -0.5662858  0.0056453  -100.311  < 2e-16 ***
DESTIN_SZBKSZ05 -0.9406607  0.0070597  -133.244  < 2e-16 ***
DESTIN_SZBKSZ06 -1.3129276  0.0067414  -194.755  < 2e-16 ***
DESTIN_SZBKSZ07  0.0120605  0.0049284     2.447 0.014400 *  
DESTIN_SZBKSZ08 -1.3658471  0.0075109  -181.849  < 2e-16 ***
DESTIN_SZBKSZ09 -0.1771310  0.0055645   -31.832  < 2e-16 ***
DESTIN_SZBLSZ01 -0.8175223  0.0075645  -108.074  < 2e-16 ***
DESTIN_SZBLSZ02  0.1631280  0.0071753    22.735  < 2e-16 ***
DESTIN_SZBLSZ03  1.2598494  0.0081706   154.194  < 2e-16 ***
DESTIN_SZBLSZ04 -0.5642975  0.0137827   -40.943  < 2e-16 ***
DESTIN_SZBMSZ01  0.6921844  0.0054211   127.684  < 2e-16 ***
DESTIN_SZBMSZ02 -0.1209392  0.0055362   -21.845  < 2e-16 ***
DESTIN_SZBMSZ03 -0.2373881  0.0062427   -38.027  < 2e-16 ***
DESTIN_SZBMSZ04 -0.0407117  0.0058001    -7.019 2.23e-12 ***
DESTIN_SZBMSZ05 -0.2363309  0.0075967   -31.110  < 2e-16 ***
DESTIN_SZBMSZ06 -1.1930710  0.0134761   -88.532  < 2e-16 ***
DESTIN_SZBMSZ07  0.4625103  0.0051864    89.178  < 2e-16 ***
DESTIN_SZBMSZ08 -0.8604731  0.0069899  -123.102  < 2e-16 ***
DESTIN_SZBMSZ09 -2.1290239  0.0154841  -137.498  < 2e-16 ***
DESTIN_SZBMSZ10 -1.4617153  0.0094014  -155.478  < 2e-16 ***
DESTIN_SZBMSZ11 -1.3234050  0.0085506  -154.773  < 2e-16 ***
DESTIN_SZBMSZ12 -0.8399230  0.0085361   -98.397  < 2e-16 ***
DESTIN_SZBMSZ13  0.1366529  0.0059697    22.891  < 2e-16 ***
DESTIN_SZBMSZ14 -1.0491968  0.0083021  -126.378  < 2e-16 ***
DESTIN_SZBMSZ15 -0.6726684  0.0076276   -88.189  < 2e-16 ***
DESTIN_SZBMSZ16 -1.4011734  0.0116569  -120.201  < 2e-16 ***
DESTIN_SZBMSZ17 -1.5682752  0.0167333   -93.722  < 2e-16 ***
DESTIN_SZBPSZ01 -1.1120017  0.0063197  -175.959  < 2e-16 ***
DESTIN_SZBPSZ02 -2.0833466  0.0091139  -228.590  < 2e-16 ***
DESTIN_SZBPSZ03 -1.6937265  0.0087437  -193.709  < 2e-16 ***
DESTIN_SZBPSZ04 -0.7964999  0.0066129  -120.447  < 2e-16 ***
DESTIN_SZBPSZ05  0.2109118  0.0048815    43.206  < 2e-16 ***
DESTIN_SZBPSZ06 -1.1808365  0.0083657  -141.152  < 2e-16 ***
DESTIN_SZBPSZ07 -0.2077428  0.0084543   -24.572  < 2e-16 ***
DESTIN_SZBSSZ01  0.3164175  0.0050682    62.431  < 2e-16 ***
DESTIN_SZBSSZ02 -0.4852688  0.0057001   -85.134  < 2e-16 ***
DESTIN_SZBSSZ03  0.4130432  0.0043061    95.921  < 2e-16 ***
DESTIN_SZBTSZ01  0.6215095  0.0048914   127.061  < 2e-16 ***
DESTIN_SZBTSZ02 -0.0145076  0.0071799    -2.021 0.043324 *  
DESTIN_SZBTSZ03  0.4919981  0.0058498    84.105  < 2e-16 ***
DESTIN_SZBTSZ04 -0.6957555  0.0114078   -60.989  < 2e-16 ***
DESTIN_SZBTSZ05  0.3329814  0.0073568    45.262  < 2e-16 ***
DESTIN_SZBTSZ06 -0.1333295  0.0073965   -18.026  < 2e-16 ***
DESTIN_SZBTSZ07 -1.4449581  0.0113186  -127.663  < 2e-16 ***
DESTIN_SZBTSZ08 -0.7079056  0.0103797   -68.201  < 2e-16 ***
DESTIN_SZCBSZ01 -5.7344725  0.3162767   -18.131  < 2e-16 ***
DESTIN_SZCCSZ01 -0.0009541  0.0083381    -0.114 0.908900    
DESTIN_SZCHSZ01 -0.2083016  0.0099054   -21.029  < 2e-16 ***
DESTIN_SZCHSZ02  0.5369606  0.0057531    93.334  < 2e-16 ***
DESTIN_SZCHSZ03  2.5530638  0.0043945   580.971  < 2e-16 ***
DESTIN_SZCKSZ01 -0.5725975  0.0056507  -101.333  < 2e-16 ***
DESTIN_SZCKSZ02 -1.1181852  0.0063287  -176.685  < 2e-16 ***
DESTIN_SZCKSZ03  0.1156680  0.0049440    23.396  < 2e-16 ***
DESTIN_SZCKSZ04 -0.8647725  0.0071003  -121.794  < 2e-16 ***
DESTIN_SZCKSZ05 -1.1641791  0.0076248  -152.684  < 2e-16 ***
DESTIN_SZCKSZ06 -0.4397612  0.0073040   -60.208  < 2e-16 ***
DESTIN_SZCLSZ01  0.1930552  0.0053752    35.916  < 2e-16 ***
DESTIN_SZCLSZ02 -2.0436501  0.0136039  -150.225  < 2e-16 ***
DESTIN_SZCLSZ03 -0.9338571  0.0082908  -112.638  < 2e-16 ***
DESTIN_SZCLSZ04  0.0532041  0.0053276     9.987  < 2e-16 ***
DESTIN_SZCLSZ05 -1.0782781  0.0088184  -122.276  < 2e-16 ***
DESTIN_SZCLSZ06  0.4068171  0.0049068    82.910  < 2e-16 ***
DESTIN_SZCLSZ07 -0.3579507  0.0060289   -59.373  < 2e-16 ***
DESTIN_SZCLSZ08 -0.2487993  0.0066588   -37.364  < 2e-16 ***
DESTIN_SZCLSZ09  0.1611080  0.0071178    22.635  < 2e-16 ***
DESTIN_SZDTSZ02 -1.7308348  0.0349466   -49.528  < 2e-16 ***
DESTIN_SZDTSZ03 -0.5994253  0.0146230   -40.992  < 2e-16 ***
DESTIN_SZDTSZ13 -1.3685031  0.0162803   -84.059  < 2e-16 ***
DESTIN_SZGLSZ01 -0.0910001  0.0055275   -16.463  < 2e-16 ***
DESTIN_SZGLSZ02 -0.0692224  0.0052840   -13.100  < 2e-16 ***
DESTIN_SZGLSZ03  0.6493421  0.0043446   149.459  < 2e-16 ***
DESTIN_SZGLSZ04  0.9327947  0.0043674   213.583  < 2e-16 ***
DESTIN_SZGLSZ05  0.8161728  0.0043625   187.087  < 2e-16 ***
DESTIN_SZHGSZ01  0.0658625  0.0042516    15.491  < 2e-16 ***
DESTIN_SZHGSZ02 -0.8134329  0.0056721  -143.409  < 2e-16 ***
DESTIN_SZHGSZ03 -1.3546132  0.0066257  -204.448  < 2e-16 ***
DESTIN_SZHGSZ04 -0.4500588  0.0048448   -92.895  < 2e-16 ***
DESTIN_SZHGSZ05 -0.5026431  0.0050996   -98.566  < 2e-16 ***
DESTIN_SZHGSZ06 -0.8673686  0.0059530  -145.704  < 2e-16 ***
DESTIN_SZHGSZ07  0.0560490  0.0047702    11.750  < 2e-16 ***
DESTIN_SZHGSZ08 -0.0443189  0.0052599    -8.426  < 2e-16 ***
DESTIN_SZHGSZ09 -0.0126355  0.0054966    -2.299 0.021518 *  
DESTIN_SZHGSZ10 -3.5821793  0.0263281  -136.059  < 2e-16 ***
DESTIN_SZJESZ01 -0.3704281  0.0056684   -65.350  < 2e-16 ***
DESTIN_SZJESZ02 -0.7369159  0.0058686  -125.570  < 2e-16 ***
DESTIN_SZJESZ03 -0.8985484  0.0063627  -141.222  < 2e-16 ***
DESTIN_SZJESZ04 -1.0511995  0.0073996  -142.061  < 2e-16 ***
DESTIN_SZJESZ05 -1.5324974  0.0102612  -149.349  < 2e-16 ***
DESTIN_SZJESZ06  0.3105267  0.0048241    64.370  < 2e-16 ***
DESTIN_SZJESZ07 -1.3234483  0.0085497  -154.795  < 2e-16 ***
DESTIN_SZJESZ08 -0.6559742  0.0083174   -78.867  < 2e-16 ***
DESTIN_SZJESZ09  0.2663752  0.0063370    42.035  < 2e-16 ***
DESTIN_SZJESZ10  0.8529026  0.0076067   112.126  < 2e-16 ***
DESTIN_SZJESZ11  0.5559641  0.0074629    74.497  < 2e-16 ***
DESTIN_SZJWSZ01 -0.9790971  0.0071830  -136.308  < 2e-16 ***
DESTIN_SZJWSZ02 -0.8746590  0.0060179  -145.342  < 2e-16 ***
DESTIN_SZJWSZ03  0.5689062  0.0049105   115.855  < 2e-16 ***
DESTIN_SZJWSZ04  0.4520963  0.0050302    89.876  < 2e-16 ***
DESTIN_SZJWSZ05 -1.0249671  0.0067371  -152.137  < 2e-16 ***
DESTIN_SZJWSZ06 -0.7451483  0.0062189  -119.819  < 2e-16 ***
DESTIN_SZJWSZ07 -2.8453099  0.0287335   -99.024  < 2e-16 ***
DESTIN_SZJWSZ08 -0.3372309  0.0058003   -58.141  < 2e-16 ***
DESTIN_SZJWSZ09  1.0505330  0.0045908   228.832  < 2e-16 ***
DESTIN_SZKLSZ01 -0.2334836  0.0057970   -40.277  < 2e-16 ***
DESTIN_SZKLSZ02 -0.5416148  0.0061432   -88.164  < 2e-16 ***
DESTIN_SZKLSZ03 -0.8026495  0.0068745  -116.757  < 2e-16 ***
DESTIN_SZKLSZ04 -1.2918594  0.0090197  -143.227  < 2e-16 ***
DESTIN_SZKLSZ05 -0.4069101  0.0087812   -46.339  < 2e-16 ***
DESTIN_SZKLSZ06 -2.5333101  0.0363215   -69.747  < 2e-16 ***
DESTIN_SZKLSZ07 -0.6623343  0.0070761   -93.601  < 2e-16 ***
DESTIN_SZKLSZ08 -0.1408205  0.0054965   -25.620  < 2e-16 ***
DESTIN_SZLKSZ01 -1.2639235  0.0208254   -60.691  < 2e-16 ***
DESTIN_SZMDSZ01 -1.5655800  0.0202787   -77.203  < 2e-16 ***
DESTIN_SZMDSZ02 -0.9767682  0.0114687   -85.168  < 2e-16 ***
DESTIN_SZMDSZ03 -3.3328109  0.0254294  -131.061  < 2e-16 ***
DESTIN_SZMPSZ01 -0.4552859  0.0080666   -56.441  < 2e-16 ***
DESTIN_SZMPSZ02 -0.5386560  0.0064620   -83.358  < 2e-16 ***
DESTIN_SZMPSZ03  0.4952000  0.0052295    94.694  < 2e-16 ***
DESTIN_SZMUSZ02 -1.4434175  0.0202509   -71.277  < 2e-16 ***
DESTIN_SZNTSZ01 -2.9194067  0.0449654   -64.926  < 2e-16 ***
DESTIN_SZNTSZ02 -1.3780179  0.0112867  -122.092  < 2e-16 ***
DESTIN_SZNTSZ03 -0.5044699  0.0080449   -62.707  < 2e-16 ***
DESTIN_SZNTSZ05 -2.0017134  0.0258750   -77.361  < 2e-16 ***
DESTIN_SZNTSZ06 -3.8120537  0.0434271   -87.781  < 2e-16 ***
DESTIN_SZNVSZ01 -0.1071506  0.0051026   -20.999  < 2e-16 ***
DESTIN_SZNVSZ02 -0.0274710  0.0057611    -4.768 1.86e-06 ***
DESTIN_SZNVSZ03  0.1076352  0.0057909    18.587  < 2e-16 ***
DESTIN_SZNVSZ04 -1.2087250  0.0110438  -109.448  < 2e-16 ***
DESTIN_SZNVSZ05 -1.0058290  0.0092167  -109.131  < 2e-16 ***
DESTIN_SZPGSZ01 -1.2029931  0.0163170   -73.726  < 2e-16 ***
DESTIN_SZPGSZ02 -1.2878671  0.0074139  -173.709  < 2e-16 ***
DESTIN_SZPGSZ03 -0.1520894  0.0048629   -31.275  < 2e-16 ***
DESTIN_SZPGSZ04 -0.1985959  0.0050374   -39.424  < 2e-16 ***
DESTIN_SZPGSZ05 -1.5290983  0.0082617  -185.083  < 2e-16 ***
DESTIN_SZPLSZ01 -0.3567934  0.0074298   -48.022  < 2e-16 ***
DESTIN_SZPLSZ02 -1.7114351  0.0134462  -127.280  < 2e-16 ***
DESTIN_SZPLSZ03 -0.3241427  0.0098895   -32.776  < 2e-16 ***
DESTIN_SZPLSZ04 -1.7117196  0.0119003  -143.838  < 2e-16 ***
DESTIN_SZPLSZ05 -0.5086379  0.0120051   -42.368  < 2e-16 ***
DESTIN_SZPNSZ01  0.2026781  0.0068977    29.383  < 2e-16 ***
DESTIN_SZPNSZ02  0.8313754  0.0078544   105.848  < 2e-16 ***
DESTIN_SZPNSZ03 -0.4041254  0.0086586   -46.673  < 2e-16 ***
DESTIN_SZPNSZ04  1.5814539  0.0093641   168.885  < 2e-16 ***
DESTIN_SZPNSZ05  1.1823430  0.0129843    91.059  < 2e-16 ***
DESTIN_SZPRSZ01 -1.1057553  0.0088197  -125.374  < 2e-16 ***
DESTIN_SZPRSZ02  0.0895099  0.0056308    15.897  < 2e-16 ***
DESTIN_SZPRSZ03  0.6921925  0.0043977   157.397  < 2e-16 ***
DESTIN_SZPRSZ04 -0.2848336  0.0084725   -33.619  < 2e-16 ***
DESTIN_SZPRSZ05  0.1744480  0.0053553    32.575  < 2e-16 ***
DESTIN_SZPRSZ06  0.4279206  0.0058735    72.856  < 2e-16 ***
DESTIN_SZPRSZ07 -1.5123108  0.0124303  -121.664  < 2e-16 ***
DESTIN_SZPRSZ08 -0.5650226  0.0068530   -82.449  < 2e-16 ***
DESTIN_SZQTSZ01 -0.5952360  0.0090505   -65.769  < 2e-16 ***
DESTIN_SZQTSZ02 -0.7728170  0.0078910   -97.937  < 2e-16 ***
DESTIN_SZQTSZ03 -0.5066812  0.0073996   -68.474  < 2e-16 ***
DESTIN_SZQTSZ04 -0.6398414  0.0075411   -84.847  < 2e-16 ***
DESTIN_SZQTSZ05 -0.4354527  0.0069345   -62.795  < 2e-16 ***
DESTIN_SZQTSZ06 -0.6597391  0.0071919   -91.733  < 2e-16 ***
DESTIN_SZQTSZ07 -0.9392696  0.0112518   -83.477  < 2e-16 ***
DESTIN_SZQTSZ08  0.4617774  0.0057011    80.998  < 2e-16 ***
DESTIN_SZQTSZ09 -0.3174497  0.0065890   -48.178  < 2e-16 ***
DESTIN_SZQTSZ10  0.1993449  0.0059923    33.267  < 2e-16 ***
DESTIN_SZQTSZ11  0.2551535  0.0061885    41.230  < 2e-16 ***
DESTIN_SZQTSZ12 -0.1662603  0.0086701   -19.176  < 2e-16 ***
DESTIN_SZQTSZ13  0.5500978  0.0063091    87.192  < 2e-16 ***
DESTIN_SZQTSZ14  0.5364435  0.0070157    76.463  < 2e-16 ***
DESTIN_SZQTSZ15  1.3611043  0.0081643   166.715  < 2e-16 ***
DESTIN_SZRCSZ01 -0.1034049  0.0076769   -13.470  < 2e-16 ***
DESTIN_SZRCSZ06 -1.0633902  0.0189846   -56.013  < 2e-16 ***
DESTIN_SZRVSZ01 -1.5486221  0.0165272   -93.701  < 2e-16 ***
DESTIN_SZRVSZ02 -2.4092611  0.0326906   -73.699  < 2e-16 ***
DESTIN_SZRVSZ03 -1.5172079  0.0139258  -108.950  < 2e-16 ***
DESTIN_SZRVSZ04 -1.1663615  0.0157430   -74.088  < 2e-16 ***
DESTIN_SZRVSZ05 -2.2404292  0.0281339   -79.634  < 2e-16 ***
DESTIN_SZSBSZ01 -1.3783780  0.0096022  -143.549  < 2e-16 ***
DESTIN_SZSBSZ02 -1.4445213  0.0081630  -176.959  < 2e-16 ***
DESTIN_SZSBSZ03  0.5149906  0.0051663    99.683  < 2e-16 ***
DESTIN_SZSBSZ04  0.2389086  0.0060765    39.317  < 2e-16 ***
DESTIN_SZSBSZ05 -1.2737442  0.0082818  -153.801  < 2e-16 ***
DESTIN_SZSBSZ06 -1.8683520  0.0227277   -82.206  < 2e-16 ***
DESTIN_SZSBSZ07 -0.5993154  0.0184895   -32.414  < 2e-16 ***
DESTIN_SZSBSZ08  0.8156302  0.0059840   136.302  < 2e-16 ***
DESTIN_SZSBSZ09  0.0900611  0.0057054    15.785  < 2e-16 ***
DESTIN_SZSESZ02 -0.6397704  0.0052491  -121.882  < 2e-16 ***
DESTIN_SZSESZ03  0.1714103  0.0042357    40.468  < 2e-16 ***
DESTIN_SZSESZ04 -1.0596175  0.0059865  -177.002  < 2e-16 ***
DESTIN_SZSESZ05 -0.8071891  0.0051229  -157.566  < 2e-16 ***
DESTIN_SZSESZ06 -0.5580934  0.0066216   -84.284  < 2e-16 ***
DESTIN_SZSESZ07 -3.1448863  0.0227788  -138.062  < 2e-16 ***
DESTIN_SZSGSZ01 -0.1795225  0.0060127   -29.857  < 2e-16 ***
DESTIN_SZSGSZ02 -0.2986570  0.0053561   -55.760  < 2e-16 ***
DESTIN_SZSGSZ03 -0.4074671  0.0050609   -80.513  < 2e-16 ***
DESTIN_SZSGSZ04 -0.1505164  0.0050931   -29.553  < 2e-16 ***
DESTIN_SZSGSZ05 -1.9908372  0.0101448  -196.242  < 2e-16 ***
DESTIN_SZSGSZ06  0.6715268  0.0041161   163.148  < 2e-16 ***
DESTIN_SZSGSZ07 -0.4494757  0.0055319   -81.252  < 2e-16 ***
DESTIN_SZSISZ01 -0.5517983  0.0261860   -21.072  < 2e-16 ***
DESTIN_SZSKSZ01 -0.4749154  0.0079257   -59.921  < 2e-16 ***
DESTIN_SZSKSZ02  0.9400302  0.0057218   164.290  < 2e-16 ***
DESTIN_SZSKSZ03 -0.2800377  0.0066081   -42.378  < 2e-16 ***
DESTIN_SZSKSZ04 -1.2570212  0.0145351   -86.482  < 2e-16 ***
DESTIN_SZSKSZ05 -0.2600474  0.0112800   -23.054  < 2e-16 ***
DESTIN_SZSLSZ01 -0.7775604  0.0085818   -90.606  < 2e-16 ***
DESTIN_SZSLSZ04 -0.8586515  0.0073142  -117.396  < 2e-16 ***
DESTIN_SZSRSZ01 -1.1370887  0.0142148   -79.993  < 2e-16 ***
DESTIN_SZTHSZ01 -4.3259988  0.0368554  -117.378  < 2e-16 ***
DESTIN_SZTHSZ03 -2.6632914  0.0252720  -105.385  < 2e-16 ***
DESTIN_SZTHSZ04 -3.1000906  0.0216372  -143.276  < 2e-16 ***
DESTIN_SZTHSZ06 -2.5952642  0.0156340  -166.001  < 2e-16 ***
DESTIN_SZTMSZ01 -0.2092828  0.0059257   -35.318  < 2e-16 ***
DESTIN_SZTMSZ02  1.8238139  0.0039155   465.798  < 2e-16 ***
DESTIN_SZTMSZ03  0.8518259  0.0043636   195.210  < 2e-16 ***
DESTIN_SZTMSZ04  1.0222812  0.0043466   235.191  < 2e-16 ***
DESTIN_SZTMSZ05  0.6323777  0.0060058   105.294  < 2e-16 ***
DESTIN_SZTNSZ01 -0.3336078  0.0074388   -44.847  < 2e-16 ***
DESTIN_SZTNSZ02 -1.0820469  0.0101689  -106.408  < 2e-16 ***
DESTIN_SZTNSZ03 -1.4186505  0.0119906  -118.313  < 2e-16 ***
DESTIN_SZTNSZ04 -0.3058199  0.0074743   -40.916  < 2e-16 ***
DESTIN_SZTPSZ01 -0.4872299  0.0061571   -79.133  < 2e-16 ***
DESTIN_SZTPSZ02  0.7158441  0.0041312   173.278  < 2e-16 ***
DESTIN_SZTPSZ03 -0.4314229  0.0059917   -72.004  < 2e-16 ***
DESTIN_SZTPSZ04 -1.5898245  0.0076083  -208.959  < 2e-16 ***
DESTIN_SZTPSZ05 -1.0445550  0.0062363  -167.497  < 2e-16 ***
DESTIN_SZTPSZ06 -0.4319582  0.0070100   -61.621  < 2e-16 ***
DESTIN_SZTPSZ07 -2.1602303  0.0120352  -179.493  < 2e-16 ***
DESTIN_SZTPSZ08 -1.1920493  0.0093083  -128.063  < 2e-16 ***
DESTIN_SZTPSZ09 -0.2022481  0.0071137   -28.431  < 2e-16 ***
DESTIN_SZTPSZ10 -1.2464793  0.0090124  -138.308  < 2e-16 ***
DESTIN_SZTPSZ11 -0.0808445  0.0056019   -14.432  < 2e-16 ***
DESTIN_SZTPSZ12 -0.6784376  0.0066340  -102.267  < 2e-16 ***
DESTIN_SZTSSZ01 -1.5845062  0.0222086   -71.346  < 2e-16 ***
DESTIN_SZTSSZ02 -0.1886010  0.0146338   -12.888  < 2e-16 ***
DESTIN_SZTSSZ03  0.6525526  0.0092450    70.585  < 2e-16 ***
DESTIN_SZTSSZ04  0.5285464  0.0100182    52.759  < 2e-16 ***
DESTIN_SZTSSZ05  1.4670106  0.0104357   140.577  < 2e-16 ***
DESTIN_SZTSSZ06  2.5043588  0.0167444   149.564  < 2e-16 ***
DESTIN_SZWCSZ01  1.9787931  0.0054306   364.375  < 2e-16 ***
DESTIN_SZWCSZ02 -2.2593108  0.0127916  -176.624  < 2e-16 ***
DESTIN_SZWCSZ03 -3.1897655  0.0326927   -97.568  < 2e-16 ***
DESTIN_SZWDSZ01  1.0476108  0.0044629   234.738  < 2e-16 ***
DESTIN_SZWDSZ02 -1.3176990  0.0065894  -199.973  < 2e-16 ***
DESTIN_SZWDSZ03  0.3432057  0.0052496    65.377  < 2e-16 ***
DESTIN_SZWDSZ04 -0.7895927  0.0073392  -107.586  < 2e-16 ***
DESTIN_SZWDSZ05 -0.8751665  0.0072946  -119.975  < 2e-16 ***
DESTIN_SZWDSZ06 -0.2106221  0.0053027   -39.720  < 2e-16 ***
DESTIN_SZWDSZ07 -1.6050834  0.0071754  -223.692  < 2e-16 ***
DESTIN_SZWDSZ08 -0.5124717  0.0069223   -74.032  < 2e-16 ***
DESTIN_SZWDSZ09  0.3813542  0.0054697    69.721  < 2e-16 ***
DESTIN_SZYSSZ01  0.0853753  0.0046572    18.332  < 2e-16 ***
DESTIN_SZYSSZ02 -0.3227172  0.0057351   -56.271  < 2e-16 ***
DESTIN_SZYSSZ03 -0.4151283  0.0066299   -62.615  < 2e-16 ***
DESTIN_SZYSSZ04 -0.4637327  0.0058206   -79.671  < 2e-16 ***
DESTIN_SZYSSZ05 -1.5888242  0.0111001  -143.136  < 2e-16 ***
DESTIN_SZYSSZ06 -1.4606209  0.0107759  -135.545  < 2e-16 ***
DESTIN_SZYSSZ07 -0.7839065  0.0144357   -54.304  < 2e-16 ***
DESTIN_SZYSSZ08  0.6265412  0.0045504   137.691  < 2e-16 ***
DESTIN_SZYSSZ09  0.1520067  0.0048092    31.607  < 2e-16 ***
log(dist)       -1.8468315  0.0004608 -4008.033  < 2e-16 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

(Dispersion parameter for poisson family taken to be 1)

    Null deviance: 47094011  on 14470  degrees of freedom
Residual deviance: 10420261  on 13912  degrees of freedom
AIC: 10510518

Number of Fisher Scoring iterations: 7
CalcRSquared(dbcSIM_Poisson$data$MORNING_PEAK,
             dbcSIM_Poisson$fitted.values)
[1] 0.7001882

Model comparison

Statistical measures

model_list <- list(
  Origin_Constrained = orcSIM_Poisson,
  Doubly_Constrained = dbcSIM_Poisson)
compare_performance(model_list,
                    metrics = "RMSE")
# Comparison of Model Performance Indices

Name               | Model |     RMSE
-------------------------------------
Origin_Constrained |   glm | 2642.615
Doubly_Constrained |   glm | 1906.694

Visualising fitted values

df <- as.data.frame(orcSIM_Poisson$fitted.values) %>%
  round(digits = 0)
inter_zonal_flow <- inter_zonal_flow %>%
  cbind(df) %>%
  rename(orcTRIPS = "orcSIM_Poisson.fitted.values")
df <- as.data.frame(dbcSIM_Poisson$fitted.values) %>%
  round(digits = 0)
inter_zonal_flow <- inter_zonal_flow %>%
  cbind(df) %>%
  rename(dbcTRIPS = "dbcSIM_Poisson.fitted.values")
orc_p <- ggplot(data = inter_zonal_flow,
                aes(x = orcTRIPS,
                    y = MORNING_PEAK)) +
  geom_point() +
  geom_smooth(method = lm) +
  coord_cartesian(xlim=c(0,150000),
                  ylim=c(0,150000))

dbc_p <- ggplot(data = inter_zonal_flow,
                aes(x = dbcTRIPS,
                    y = MORNING_PEAK)) +
  geom_point() +
  geom_smooth(method = lm) +
  coord_cartesian(xlim=c(0,150000),
                  ylim=c(0,150000))
ggarrange(orc_p, dbc_p,
          ncol = 2,
          nrow = 1)
`geom_smooth()` using formula = 'y ~ x'
`geom_smooth()` using formula = 'y ~ x'