Skip to contents

Utils

check_format_names()
Check format of TDLM's inputs
extract_distances()
Compute the distance between pairs of locations
extract_opportunities()
Compute the number of opportunities between pairs of locations
extract_spatial_information()
Extract distances and surface areas from a spatial object
calib_param()
Automatic calibration of trip distribution laws' parameter

Main functions

run_law_model()
Estimate mobility flows based on different trip distribution laws and models
run_law()
Estimate mobility flows based on different trip distribution laws
run_model()
Estimate mobility flows based on different trip distribution models
gof()
Compute goodness-of-fit measures between observed and simulated OD matrices

Data

mass
Population and number of out- and in-commuters in Kansas counties, USA (2000)
distance
Great-circle distances between Kansas counties, USA
od
Origin-Destination commuting matrix for Kansas counties, USA (2000)
county
Spatial distribution of Kansas counties, USA (2000)
coords
Geographical coordinates of Kansas counties' centroids (Longitude/Latitude, 2000)
coords_xy
Geographical coordinates of Kansas counties' centroids (X/Y, Web Mercator, 2000)