GithubHelp home page GithubHelp logo

leotorres114 / rta-peer-transit-analysis Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 36.92 MB

Stores source data, scripts, charts, and tables related to a transit recovery analysis conducted by CMAP staff.

License: MIT License

R 100.00%

rta-peer-transit-analysis's Introduction

Regional transit peer service and ridership recovery analysis

This repository stores the source data, scripts, charts, and tables related to a transit service and ridership recovery analysis conducted by CMAP staff. These data serve as supporting evidence for the policy brief: Transit ridership and service trends at the RTA service boards and peer agencies.

The analysis explores recent changes in transit ridership and service levels in northeastern Illinois. It compares the performance of the region’s public transit operators – the Chicago Transit Authority (CTA), Metra, and Pace – with that of their peers.

Since the onset of the COVID-19 pandemic, the regional transit system has faced enduring challenges. The pandemic led to abrupt shifts in travel, such as a significant reduction in ridership related to remote work. It also exacerbated longstanding issues, such as frequency, reliability, safety, and security. Other regions throughout the U.S. are facing similar challenges, with an uneven and tumultuous post-pandemic transit recovery.

With three years of hindsight, peer comparisons can highlight areas of opportunity and improvements that the region could look to as inspiration and reflection as it seeks to increase transit ridership and improve the system’s long-term financial sustainability.

CMAP’s Plan of Action for Regional Transit (PART) report, approved on October 11, 2023 and delivered to the Illinois General Assembly in December 2023, identifies recommendations on the strategies, reforms , and funding solutions necessary to create a stronger regional transit system. For more information, see the PART report webpage.

Repo structure

src

  • src/peer_analysis.R: Main source file. Runs get_data.R, cleans/formats/exports the data for the charts to the processed_data folder, and creates/exports cmapplot's to the charts folder.
  • src/peer_table.R: Builds a table of the RTA's peer systems with their associated identifiers from the National Transit Database (NTD).
  • src/get_data.R: Collects, cleans, and formats NTD service and ridership data. It sources peer_table.R and merges its output with NTD data.
  • src/manual_data_fixes.R: Because this is preliminary monthly data, there may be reporting issues from peer agencies. The script manually calculates and adjusts data if issues are identified.

raw_data

  • Stores the raw monthly data from the National Transit Database.

processed_data

  • Stores monthly and annual ridership and vehicle revenue hour data for the RTA service boards and peer systems, as well as the output of peer_table.R. CSV files ending in *_monthly_clean.csv report combined directly operated and purchased transportation figures for each agency and mode.

charts

  • Stores the charts from peer_analysis.R.

rta-peer-transit-analysis's People

Contributors

leotorres114 avatar

Watchers

 avatar

rta-peer-transit-analysis's Issues

Forecasting methodology

@leotorres114 - in general, the code seems to work well for me. The for loops are very cleverly done, nice job. My only structural comment is that I think the forecasting methodology needs to be tweaked. What you have is workable, but in the PART report, we actually took one step further. Rather than just averaging 2023 figures, we took the YOY growth rate from the same period in 2022 vs. 2023 and then applied that rate to the relevant month figure from the prior year. That helps to better capture seasonal change, especially on ridership, where the seasonal effects and month length can both be fairly important.

Could you think about how the code could be adjusted to reflect that methodology? Let me know if that is confusing or you want to talk through it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.