IDEAS home Printed from https://ideas.repec.org/a/sae/envirb/v52y2025i4p1002-1013.html

Packaging code and data for reproducible research: A case study of journey time statistics

Author

Listed:
  • Federico Botta

    (Department of Computer Science, 3286University of Exeter, Exeter, UK
    Fellow, 522468The Alan Turing Institute, UK)

  • Robin Lovelace
  • Laura Gilbert
  • Arthur Turrell

Abstract

The effective and ethical use of data to inform decision-making offers huge value to the public sector, especially when delivered by transparent, reproducible, and robust data processing workflows. One way that governments are unlocking this value is through making their data publicly available, allowing more people and organisations to derive insights. However, open data is not enough in many cases: publicly available datasets need to be accessible in an analysis-ready form from popular data science tools, such as R and Python, for them to realise their full potential. This paper explores ways to maximise the impact of open data with reference to a case study of packaging code to facilitate reproducible analysis. We present the jtstats project, which consists of a main Python package, and a smaller R version, for importing, processing, and visualising large and complex datasets representing journey times, for many transport modes and trip purposes at multiple geographic levels, released by the UK Department for Transport (DfT). jtstats shows how domain specific packages can enable reproducible research within the public sector and beyond, saving duplicated effort and reducing the risks of errors from repeated analyses. We hope that the jtstats project inspires others, particularly those in the public sector, to add value to their data sets by making them more accessible.

Suggested Citation

  • Federico Botta & Robin Lovelace & Laura Gilbert & Arthur Turrell, 2025. "Packaging code and data for reproducible research: A case study of journey time statistics," Environment and Planning B, , vol. 52(4), pages 1002-1013, May.
  • Handle: RePEc:sae:envirb:v:52:y:2025:i:4:p:1002-1013
    DOI: 10.1177/23998083241267331
    as

    Download full text from publisher

    File URL: https://journals.sagepub.com/doi/10.1177/23998083241267331
    Download Restriction: no

    File URL: https://libkey.io/10.1177/23998083241267331?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Afua Kokayi & Shino Shiode & Narushige Shiode, 2023. "Geographical Exploration of the Underrepresentation of Ethnic Minority Cyclists in England," Sustainability, MDPI, vol. 15(7), pages 1-17, March.
    2. Moreno-Monroy, Ana I. & Lovelace, Robin & Ramos, Frederico R., 2018. "Public transport and school location impacts on educational inequalities: Insights from São Paulo," Journal of Transport Geography, Elsevier, vol. 67(C), pages 110-118.
    3. Andrea Gilardi & Jorge Mateu & Riccardo Borgoni & Robin Lovelace, 2022. "Multivariate hierarchical analysis of car crashes data considering a spatial network lattice," Journal of the Royal Statistical Society Series A, Royal Statistical Society, vol. 185(3), pages 1150-1177, July.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Chan, Ho-Yin & Xu, Yingying & Wang, Zhuowei & Chen, Anthony, 2024. "The deeper and wider social impacts of transportation infrastructure: From travel experience to sense of place and academic performance," Transport Policy, Elsevier, vol. 158(C), pages 51-63.
    2. Bittencourt, Tainá A. & Giannotti, Mariana, 2023. "Evaluating the accessibility and availability of public services to reduce inequalities in everyday mobility," Transportation Research Part A: Policy and Practice, Elsevier, vol. 177(C).
    3. Daqing Zu & Kang Cao & Jian Xu, 2021. "The Impacts of Transportation Sustainability on Higher Education in China," Sustainability, MDPI, vol. 13(22), pages 1-17, November.
    4. H. Vivas & D. A. Rodr�guez & N. Sisto, 2021. "Disparidad espacial en la accesibilidad a los servicios de salud hospitalarios en Cali, Colombia," Documentos de trabajo - Alianza EFI 19591, Alianza EFI.
    5. Yuen, Weilun & Lee, Leonard & Leong, Waiyan & Carmon, Ziv & Chen, Charlene & Ng, Kai Xuan & Chong, Wen Wei, 2025. "Perceived accessibility of public transport predicts intention to give up car ownership but objective accessibility does not," Journal of Transport Geography, Elsevier, vol. 129(C).
    6. Pizzol, Bruna & Giannotti, Mariana & Tomasiello, Diego Bogado, 2021. "Qualifying accessibility to education to investigate spatial equity," Journal of Transport Geography, Elsevier, vol. 96(C).
    7. Feng, Rui & Zhang, Jin & Wu, Yuelong & Wu, Ruibo & Yao, Baozhen, 2023. "School accessibility evaluation under mixed-load school bus routing problem strategies," Transport Policy, Elsevier, vol. 131(C), pages 75-86.
    8. Qiya Huang & Xijuan Cui & Libang Ma, 2023. "The Equity of Basic Educational Facilities from the Perspective of Space," Sustainability, MDPI, vol. 15(15), pages 1-16, August.
    9. Hazans, Mihails & Holmen, Rasmus Bøgh & Upenieks, Jānis & Žabko, Oksana, 2024. "Regional inequalities in access to STEM-oriented secondary education in Latvia," MPRA Paper 120646, University Library of Munich, Germany.
    10. Yadav, Manish & Mepparambath, Rakhi Manohar & Patil, Gopal R., 2024. "An enhanced transit accessibility evaluation framework by integrating Public Transport Accessibility Levels (PTAL) and transit gap," Journal of Transport Geography, Elsevier, vol. 121(C).
    11. Pierfrancesco Alaimo Di Loro & Marco Mingione & Paolo Fantozzi, 2025. "Semi-parametric Spatio-Temporal Hawkes Process for Modelling Road Accidents in Rome," Journal of Agricultural, Biological and Environmental Statistics, Springer;The International Biometric Society;American Statistical Association, vol. 30(1), pages 8-38, March.
    12. Ramírez-Hassan, Andrés & García, Gustavo A. & Saravia, Estefanía & Duque, Juan Fernando & Londoño, Daniel, 2023. "What kind of schools parents choose when they have more options? Effects of school transport subsidies," Socio-Economic Planning Sciences, Elsevier, vol. 87(PA).
    13. Mostafa Ghodousi & Abolghasem Sadeghi-Niaraki & Farzaneh Rabiee & Soo-Mi Choi, 2020. "Spatial-Temporal Analysis of Point Distribution Pattern of Schools Using Spatial Autocorrelation Indices in Bojnourd City," Sustainability, MDPI, vol. 12(18), pages 1-26, September.
    14. Slovic, Anne Dorothée & Tomasiello, Diego Bogado & Giannotti, Mariana & Andrade, Maria de Fatima & Nardocci, Adelaide C., 2019. "The long road to achieving equity: Job accessibility restrictions and overlapping inequalities in the city of São Paulo," Journal of Transport Geography, Elsevier, vol. 78(C), pages 181-193.
    15. Rajat Verma & Mithun Debnath & Shagun Mittal & Satish V. Ukkusuri, 2024. "Towards a generalized accessibility measure for transportation equity and efficiency," Papers 2404.04985, arXiv.org.
    16. Zhong, Jimin & Zhou, Long & Yang, Huajie & Arefi, Mahyar & Shen, Guoqiang, 2025. "School supply-demand balance and accessibility optimisation: A bi-objective spatial matching model using genetic algorithm," Journal of Transport Geography, Elsevier, vol. 128(C).
    17. Tiznado-Aitken, Ignacio & Muñoz, Juan Carlos & Hurtubia, Ricardo, 2021. "Public transport accessibility accounting for level of service and competition for urban opportunities: An equity analysis for education in Santiago de Chile," Journal of Transport Geography, Elsevier, vol. 90(C).
    18. Rüttenauer, Tobias, 2023. "Spatial Data Analysis," SocArXiv mq7te, Center for Open Science.
    19. Álvaro Briz-Redón, 2024. "A Bayesian Aoristic Logistic Regression to Model Spatio-Temporal Crime Risk Under the Presence of Interval-Censored Event Times," Journal of Quantitative Criminology, Springer, vol. 40(3), pages 621-644, September.
    20. Chakrabarti, Sandip & Verma, Muskan, 2025. "Analysis of the spatial range advantage of vehicle owners and its implications on vehicle ownership aspirations: Insights from India and takeaways for transportation equity," Research in Transportation Economics, Elsevier, vol. 114(C).

    More about this item

    Keywords

    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:sae:envirb:v:52:y:2025:i:4:p:1002-1013. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: SAGE Publications (email available below). General contact details of provider: .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.