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. Á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.
    2. 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.
    3. 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).
    4. Champahom, Thanapong & Chonsalasin, Dissakoon & Jomnonkwao, Sajjakaj & Ratanavaraha, Vatanavongs, 2026. "Multi-dimensional inequality and rail transportation access: a comparative study across three generations," Transportation Research Part A: Policy and Practice, Elsevier, vol. 204(C).
    5. 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).
    6. 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.
    7. Sharma, Gajanand & Patil, Gopal R., 2021. "Public transit accessibility approach to understand the equity for public healthcare services: A case study of Greater Mumbai," Journal of Transport Geography, Elsevier, vol. 94(C).
    8. Barboza, Matheus H.C. & Carneiro, Mariana S. & Falavigna, Claudio & Luz, Gregório & Orrico, Romulo, 2021. "Balancing time: Using a new accessibility measure in Rio de Janeiro," Journal of Transport Geography, Elsevier, vol. 90(C).
    9. 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.
    10. 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).
    11. Uzma Ahmad & Steven McIntosh & Gurleen Popli, 2022. "Selection and performance in post‐compulsory education," Review of Development Economics, Wiley Blackwell, vol. 26(1), pages 3-31, February.
    12. Pizzol, Bruna & Giannotti, Mariana & Tomasiello, Diego Bogado, 2021. "Qualifying accessibility to education to investigate spatial equity," Journal of Transport Geography, Elsevier, vol. 96(C).
    13. 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.
    14. Rubens Lopes Pereira Silva & Raul Silveira Neto & Diego Firmino Costa Silva, 2025. "The longer the daily commute to school, the lower the student attendance: evidence from Brazil," The Annals of Regional Science, Springer;Western Regional Science Association, vol. 74(3), pages 1-27, September.
    15. 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.
    16. 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.
    17. 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).
    18. 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.
    19. Zhenbao Wang & Dong Liu & Shihao Li & Shuyue Liu & Huiqing Li & Ning Chen, 2023. "Analyzing the Impact of Decreasing Out-of-Vehicle Time of Public Transportation Travel on Accessibility to Tertiary Hospitals," Sustainability, MDPI, vol. 15(16), pages 1-20, August.
    20. 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).

    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.