As part of my research, I contribute to the development of packages for statistical software and compile datasets.

Software

  • gravity.distances

    The R package gravity.distances provides distances between geographic entities — such as countries, US states or Canadian provinces — that are consistent with the gravity equation in international economics.

    To install the package in R, simply run the following commands:

    install.packages(devtools)
    devtools::install_github("julianhinz/gravity.distances")

    For more details and usage examples check out the respective Github repositories:



    Please cite:
    The view from space: Theory-based time-varying distances in the gravity model, Kiel Working Paper, 2059. Kiel Institute for the World Economy, Kiel, 2017-07-29

Datasets

  • Gravity Distances data

    Time-varying aggregate distances between 193 countries computed using nighttime lights data as weights, for the years 1992–2012. For more detailed data, including θs ranging from -2 to +1 and distances between other geographic entities (currently US states, Canadian provinces), the use of the R package gravity.distances is highly recommended (see above).



    Please cite:
    The view from space: Theory-based time-varying distances in the gravity model, Kiel Working Paper, 2059. Kiel Institute for the World Economy, Kiel, 2017-07-29