This is a package for discrete choice model estimation and simulation, with an emphasis on large choice sets and behavioral refinements to multinomial models. Most of these models are not available in Statsmodels or Scikit-learn.
The underlying estimation routines come from two main places: (1) the
urbanchoice codebase, which has been moved into ChoiceModels, and (2) Timothy Brathwaite's PyLogit package, which handles more flexible model specifications.
Package documentation is available on readthedocs.
Install with pip:
pip install choicemodels
or with conda-forge.
- Generates a merged long-format table of choosers and alternatives.
- Fits MNL models, using either the ChoiceModels or PyLogit estimation engines.
- Stores and reports fitted MNL models.
There's documentation in these classes' docstrings, and a usage demo in a Jupyter notebook.