Learn R Programming

TDLM

Systematic comparison of trip distribution laws and models


1 Short description

The main purpose of the TDLM's package is to propose a rigorous framework to fairly compare trip distribution laws and models as described in Lenormand et al. (2016). This general framework is based on a two-step approach to generate mobility flows by separating the trip distribution law, gravity or intervening opportunities, from the modeling approach used to generate the flows from this law.

2 Install

The package TDLM can be installed with the following command line in R session:

From the CRAN

install.packages("TDLM")

or from GitHub

# install.packages("devtools")
devtools::install_github("EpiVec/TDLM", build_vignettes = TRUE)

3 Tutorial

A tutorial vignette is available here.

4 Dependencies

TDLM depends on Ecume, mathjaxr, Rdpack, readr, rmarkdown and sf.

5 Citation

Lenormand M (2023) TDLM: An R package for a systematic comparison of trip distribution laws and models. Journal of Open Source Software 8, 5434.

6 Contribution instructions

Please feel free to open an issue if you encounter a problem with the package.

You can also reach me at maxime.lenormand[at]inrae.fr.

Copy Link

Version

Install

install.packages('TDLM')

Monthly Downloads

190

Version

1.0.0

License

GPL-3

Last Published

December 19th, 2023

Functions in TDLM (1.0.0)

run_model

Estimate mobility flows based on different trip distribution models
run_law_model

Estimate mobility flows based on different trip distribution laws and models
calib_param

Automatic calibration of trip distribution laws' parameter
run_law

Estimate mobility flows based on different trip distribution laws
check_format_names

Check format of TDLM's inputs
od

Origin-Destination commuting matrix between US Kansas counties in 2000
county

Spatial distribution of US Kansas counties in 2000
extract_opportunities

Compute the number of opportunities between pairs of locations
distance

Great-circle distances between US Kansas counties
extract_spatial_information

Extract distances and surface areas from a spatial object
gof

Compute goodness-of-fit measures between observed and simulated OD matrices
mass

Population and number of out- and in-commuters by US Kansas county in 2000