This codes estimates an ordered logit from the data of the Mobility and Transport Microcensus 2015 explaining the number of trips from home to work. The outputs are available in an HTML file. The results are described in a conference paper, "Trip generation in Switzerland, 2015-2030", published for the 21th Swiss Transport Research Conference (STRC).
If you want to estimate and validate the model, you need this code and the data of the Mobility and Transport Microcensus 2015.
To run the code itself, you need python 3, pandas, Geopandas and PandasBiogeme.
You also need the raw data of the Transport and Mobility Microcensus 2015, not included on GitHub. These data are individual data and therefore not open. You can however get them by filling in this form in German, French or Italian. The cost of the data is available in the document "Mikrozensus Mobilität und Verkehr 2015: Mögliche Zusatzauswertungen"/"Microrecensement mobilité et transports 2015: Analyses supplémentaires possibles".
Please copy the files haushalte.csv and zielpersonen.csv of the Mobility and Transport Microcensus 2015 that you receive from the Federal Statistical Office in the folders data/input/mtmc/2015/. Then run run_trip_generation.py.
DO NOT commit or share in any way the CSV files haushalte.csv and zielpersonen.csv! These are personal data.