Swissmetro

Various examples are available to illustrate the syntax of biogeme. They are all based on a data set collected to analyze the impact of the modal innovation in transportation: Swissmetro, a revolutionary mag-lev underground system.

Download the data file here.

Documentation:

Most models are available both as a .mod file, with the syntax of bisonbiogeme, and as a .py file, with the specification written in python, to be used with pythonbiogeme. The .html generated by biogeme is also provided, both for bisonbiogeme and pythonbiogeme. In general, the output are identical. However, the output may vary in some circumstances, when simulation is involved, or when they are numerical issues during the estimation.

These models are meant only to illustrate the syntax of biogeme. They are not meant to reflect good specification practice. The estimation procedure may even fail for some of them (typically, it happens with some mixture models with lognornal distributions).

List of examples
Bison inputBison outputPython inputPython output
01logit.mod01logit.html01logit.py01logit.html
01logit_simul.py01logit_simul.html
01logit_stat.py01logit_stat.html
02weight.mod02weight.html02weight.py02weight.html
03scale.mod03scale.html03scale.py03scale.html
04modifVariables.mod04modifVariables.html04modifVariables.py04modifVariables.html
05normalMixture.mod05normalMixture.html05normalMixture.py05normalMixture.html
05normalMixtureIntegral.py05normalMixtureIntegral.html
06unifMixture.mod06unifMixture.html06unifMixture.py06unifMixture.html
06unifMixtureIntegral.py06unifMixtureIntegral.html
07discreteMixture.mod07discreteMixture.html07discreteMixture.py07discreteMixture.html
08boxcox.mod08boxcox.html08boxcox.py08boxcox.html
09nested.mod09nested.html09nested.py09nested.html
10nestedBottom.mod10nestedBottom.html10nestedBottom.py10nestedBottom.html
11cnl.mod11cnl.html11cnl.py11cnl.html
11cnl_simul.py11cnl_simul.html
12panel.mod12panel.html12panel.py12panel.html
12panel_bis.py
13panelNormalized.mod13panelNormalized.html13panelNormalized.py13panelNormalized.html
14selectionBias.mod14selectionBias.html14selectionBias.py14selectionBias.html
15panelDiscrete.mod15panelDiscrete.html15panelDiscrete.py15panelDiscrete.html
16legendre.mod16legendre.html
17lognormalMixture.mod17lognormalMixture.html17lognormalMixture.py17lognormalMixture.html
17lognormalMixtureIntegral.py17lognormalMixtureIntegral.html
17lognormalMixtureWithDerivatives.mod17lognormalMixtureWithDerivatives.html
18ordinalLogit.mod18ordinalLogit.html18ordinalLogit.py
19ngev_nl.mod19ngev_nl.html
20ngev_cnl.mod20ngev_cnl.html
21probit.py21probit.html
22sumExample.py22sumExample.html
24truncatedNormalMixture.py24truncatedNormalMixture.html
25triangularMixture.py25triangularMixture.html
26triangularPanelMixture.py26triangularPanelMixture.html