MyNixOS website logo
Description
Spatial Econometric Interaction Models
Efficient estimation of spatial econometric models of origin-destination flows, which may exhibit spatial autocorrelation in the dependent variable, the explanatory variables or both. The model is the one proposed by LeSage and Pace (2008) <doi:10.1111/j.1467-9787.2008.00573.x>, who develop a matrix formulation that exploits the relational structure of flow data. The estimation procedures follow most closely those outlined by Dargel (2021) (preprint available at <https://www.tse-fr.eu/fr/publications/revisiting-estimation-methods-spatial-econometric-interaction-models>).

spflow

CRANstatus R-CMD-check test-coverage status Downloads

The spflow package allows to estimate spatial econometric interaction models. It is designed to exploit the relational structure of flow data, reducing the computational burden and memory requirements.

Installation

You can install development version from GitHub with:

# install.packages("devtools")
devtools::install_github("LukeCe/spflow")

Example

The package provides a new sp_multi_network-class that combines information on the origins, the destinations, and the origin-destination pairs. Once this object is created, we can estimate an interaction model with the spflow() function. The package vignette contains a more detailed example.

library("spflow")
spflow(y9 ~ . + G_(DISTANCE), multi_net_usa_ge)
#> --------------------------------------------------
#> Spatial interaction model estimated by: MLE  
#> Autocorrelation structure: model_9 (SDM)  
#> Observations: 256  
#> 
#> --------------------------------------------------
#> Coefficients:
#>                 est    sd  t.stat  p.value
#> rho_d          0.48  0.03   15.75     0.02
#> rho_o          0.36  0.03   10.59     0.03
#> rho_w         -0.25  0.04   -5.95     0.05
#> (Intercept)   10.00  1.92    5.21     0.06
#> (Intra)       11.32  3.07    3.69     0.08
#> DEST_X         0.94  0.06   14.97     0.02
#> DEST_X.lag1    0.62  0.11    5.80     0.05
#> ORIG_X        -0.78  0.04  -21.20     0.02
#> ORIG_X.lag1   -0.32  0.08   -3.93     0.08
#> INTRA_X        1.95  0.08   23.98     0.01
#> INTRA_X.lag1  -0.34  0.19   -1.76     0.16
#> DISTANCE      -2.80  0.34   -8.25     0.04
#> 
#> --------------------------------------------------
#> R2_corr: 0.9927709

License

GPL 3

Metadata

Version

0.1.0

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows