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 by US Kansas county in 2000
distance
Great-circle distances between US Kansas counties
od
Origin-Destination commuting matrix between US Kansas counties in 2000
county
Spatial distribution of US Kansas counties in 2000
coords
Geographical coordinates of US Kansas counties' centroids in 2000 (Longitude/Latitude)
coords_xy
Geographical coordinates of US Kansas counties' centroids in 2000 (X/Y based on Web Mercator)