Skip to main content

NP4VTT

NP4VTT is a Python package that enables researchers to estimate and compare nonparametric models in a fast and convenient way. It comprises five nonparametric models for estimating the VTT distribution from data coming from two-attribute-two-alternative stated choice experiments:

  • Local constant model (Fosgerau, 2006, 2007)
  • Local logit (Fosgerau, 2007)
  • Rouwendal model (Rouwendal et al., 2010)
  • Artificial Neural Network (ANN) based VTT model (van Cranenburgh & Kouwenhoven, 2021)
  • Logistic Regression based VTT model (van Cranenburgh & Kouwenhoven, 2021)

Additionally, a Random Valuation model (Ojeda-Cabral, 2006) is included for benchmarking purposes

Installation steps

  • Use pip to install the py-np4vtt library normally:
    • python3 -m pip install py-np4vtt

Examples

We provide Jupyter Notebooks that show how to configure and estimate each model included in NP4VTT:

  • Local constant model: link
  • Local logit: link
  • Rouwendal model: link
  • ANN-based VTT model: link
  • Logistic Regression-based VTT model: link

These examples guide the user through the process of loading a dataset, estimating a nonparametric model, and visualising the VTT distribution using scatter and histogram plots. We use the Norwegian 2009 VTT data to illustrate each example.

Take, for example, the VTT distribution from the Rouwendal model using NP4VTT:

VTT distribution from the Rouwendal model using NP4VTT

References

  • Fosgerau, M. (2006). Investigating the distribution of the value of travel time savings. Transportation Research Part B: Methodological, 40(8), 688–707. https://doi.org/10.1016/j.trb.2005.09.007
  • Fosgerau, M. (2007). Using nonparametrics to specify a model to measure the value of travel time. Transportation Research Part A: Policy and Practice, 41(9), 842–856. https://doi.org/10.1016/j.tra.2006.10.004
  • Rouwendal, J., de Blaeij, A., Rietveld, P., & Verhoef, E. (2010). The information content of a stated choice experiment: A new method and its application to the value of a statistical life. Transportation Research Part B: Methodological, 44(1), 136–151. https://doi.org/10.1016/j.trb.2009.04.006
  • Ojeda-Cabral, M., Batley, R., & Hess, S. (2016). The value of travel time: Random utility versus random valuation. Transportmetrica A: Transport Science, 12(3), 230–248. https://doi.org/10.1080/23249935.2015.1125398
  • van Cranenburgh, S., & Kouwenhoven, M. (2021). An artificial neural network based method to uncover the value-of-travel-time distribution. Transportation, 48(5), 2545–2583. https://doi.org/10.1007/s11116-020-10139-3

Metadata

Release files for py-np4vtt 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-np4vtt 1.0.6
File Size Uploaded Provenance Actions
py-np4vtt-1.0.6.tar.gz 18.1 kB Without provenance Details for py-np4vtt-1.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py-np4vtt 1.0.6
File Interpreter ABI Platform Actions
py_np4vtt-1.0.6-py3-none-any.whl Python 3 none any Details for py_np4vtt-1.0.6-py3-none-any.whl

Total release size: 48.3 kB

Release files / py-np4vtt-1.0.6.tar.gz

Download URL py-np4vtt-1.0.6.tar.gz
Size 18.1 kB
Tags Source
SHA-256 checksum
How to use checksums
09151b83a2d9aff1ba5ce881d9899234ae995519602ac283c1d80471d8556857
BLAKE2b-256 checksum
How to use checksums
00596ee113c8a1483db17e2148f9cb20375fc391ae8a48c7c5d47d7f00b5212d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.13 Darwin/22.5.0

Release files / py_np4vtt-1.0.6-py3-none-any.whl

Download URL py_np4vtt-1.0.6-py3-none-any.whl
Size 30.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26dcc5585ad7a2205dd7654ab88a84bd455dd61b13e0bd1e93045217cff8283f
BLAKE2b-256 checksum
How to use checksums
89c4c305c8dade26bfc107f9d8d3fc0c0d03e21270257bffcf388e9504719b15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.13 Darwin/22.5.0

Security for py-np4vtt 1.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page