Giter Site home page Giter Site logo

station-demand-forecasting-tool / sdft Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 1016 KB

R package for the Station Demand Forecasting Tool

License: GNU Affero General Public License v3.0

R 100.00%
demand-forecasting railways railway-stations pgrouting forecasting-model choice-model sketch-model transit-ridership-model

sdft's Introduction

Station Demand Forecasting Tool

Build Status DOI Project Status: Active – The project has reached a stable, usable state and is being actively developed.

This is the R package for the Station Demand Forecasting Tool.

About the tool

This tool generates a rail demand forecast (predicted trips per year) for one or more proposed local railway stations in mainland GB. If required it can also produce an analysis of potential abstraction of journeys from existing stations, enabling the net impact of a new station on rail demand to be estimated. Forecasts for multiple stations can be accommodated as part of the same job. These can be treated independently (alternative station locations are to be assessed) or concurrently (the proposed stations will coexist).

The underlying model is based on research by Marcus Young at the University of Southampton’s Transportation Research Group. At its core is a trip end model which has been calibrated on the smaller stations (network Rail Categories E and F) in Great Britain. In such a model the number of trips is a function of the population in a station’s catchment and a range of other variables, such as service frequency and number of jobs nearby. A novel aspect of this model is that probability-based catchments are defined at the unit postcode level using a station choice model. Rather than assuming everyone will use their nearest station, this provides a more realistic representation of behaviour and allows competition to occur between stations.

A conference paper with more details about the model is available. Note that the web front-end referred to in this paper is not part of the code release.

Tool implementation

While this R package controls the tool, it is not standalone. Most of the heavy lifting takes place in a PostgreSQL database that requires setting up with data tables and additional wrapper functions for pgRouting.

A Docker implementation is available.

Tool documentation

https://www.stationdemand.org.uk.

How to cite

Please cite sdft if you use it. Get citation information using: citation(package = 'sdft'):

To cite the sdft package in publications, please use the following. You can obtain
the DOI for a specific version from: https://zenodo.org/record/4066924

  Marcus Young and Simon Blainey (2020). sdft: The Station Demand Forecasting Tool.
  R package version 0.3.1. https://doi.org/10.5281/zenodo.4066924

A BibTeX entry for LaTeX users is

  @Manual{,
    author = {{Marcus Young} and {Simon Blainey}},
    title = {{sdft: The Station Demand Forecasting Tool}},
    year = {2020},
    note = {{R package version 0.3.1}},
    doi = {{10.5281/zenodo.4066924}},
  }

sdft's People

Contributors

marcusyoung avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

sdft's Issues

Frequency group adjustments

Should frequency group adjustment be made in the before catchment in the abstraction analysis? Maybe it's OK to include it so isolating just the effect of the new stations?

Capture situation where no rows are returned during abstraction analysis

For example, Llanwern with abstraction station RUA. This was a mistake as RUA is no where near Llanwern. But the AFTER choiceset returned empty and error thrown:

  1. Need to trap this error
  2. Not clear why the AFTER should return an empty choicset dataframe in this scenario. May be a bug or bad logic in how the AFTER choiceset is generated.

Station distance bug

From the Llanwern example it looks like the distances are being measured from the station location NGR and not the access point NGR. It's not obvious where this is happening.

Backcasting

Add the ability for the tool to automatically carry out a backcast (forecast demand for a station that opened since the calibration year).

This will require the station(s) that the backcast is for, and any stations that have been opened since, being temporarily removed from the stations table and the centroidnodes table.

Exogenous input bug

Seems to be an issue with the population column in the exogneous table not being populated when type is houses (and possibly when population). Appears in example model for Llanwern.

Workplace zone centroids

How can we be sure that zones within 1 minute actually fall within the 1 minute service area? The centroid may be off the road network? Should the centroid be moved to nearest edge?

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.