This codes estimates a binary logit from the data of the Mobility and Transport Microcensus explaining the "choice" of making - at least from time to time - home office. The outputs are available in an HTML file. The results are described in two conference papers:
- "Working from home in Switzerland, 2015-2050", published for the 21th Swiss Transport Research Conference (STRC), published in September 2021 using the data of the Mobility and Transport Microcensus 2015. The slides are available here.
- "Working from home: Forecasting 2050", presented at the 7th International Choice Modelling Conference (ICMC) that took place in Mai 2022 using the data of the Mobility and Transport Microcensus 2015 and 2020. The slides are available here.
If you want to estimate and validate the model, you need this code and the data of the Mobility and Transport Microcensus 2015 & 2020.
To run the code itself, you need python 3, pandas, Geopandas, xlrd, PandasBiogeme and pygeos.
For it to produce the results, you also need the raw data of the Transport and Mobility Microcensus 2015 & 2020, 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_home_office_in_microcensus.py.
DO NOT commit or share in any way the CSV files haushalte.csv and zielpersonen.csv! These are personal data.