Experimental designs for discrete choice models.
Project description
ChoiceDesign
ChoiceDesign is a Python package tool to construct D-efficient designs for Discrete Choice Experiments. ChoiceDesign combines enough flexibility to construct from simple 2-alternative designs with few attributes, to more complex settings that may involve conditions between attributes. ChoiceDesign is a revamped version of EDT, a project I created some years ago for the same purpose. ChoiceDesign includes improvements over EDT such as class-based syntax, coding improvements, better documentation and making this package available to install via pip
.
Installation
ChoiceDesign is available to install via the regular syntax of pip
:
python3 -m pip install choicedesign
Features
The main features of ChoiceDesign are:
-
Allows to customize each attribute in terms of:
- Attribute Levels
- Continuous or Dummy coding (Effects coding is work-in-progress)
- Assignement of prior parameters
- Attribute names
-
Designs with constraints: ChoiceDesign allows to define conditions over different attribute levels.
-
Designs with blocks.
-
Designs with alternative-specific constants (ASC).
-
Multiple stopping criteria (Fixed number of iterations, iterations without improvement or fixed time).
Examples
I provide some Jupyter notebooks that illustrate the use of ChoiceDesign in the examples/
folder of this Git.
How to contribute?
Any contributions to ChoiceDesign are welcome via this Git, or to the email joseignaciohernandezh at gmail dot com.
Disclaimer
This software is provided for free and as it is, say with no warranty, and neither me nor my current institution is liable of any consequence of the use of it. In any case, integrity checks have been performed by comparing results with alternative software.
References
- Kuhfeld, W. F. (2005). Experimental design, efficiency, coding, and choice designs. Marketing research methods in SAS: Experimental design, choice, conjoint, and graphical techniques, 47-97.
- Quan, W., Rose, J. M., Collins, A. T., & Bliemer, M. C. (2011). A comparison of algorithms for generating efficient choice experiments.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for choicedesign-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea2466ed2869642f339bd57ad1826025ca732d677ece54615bc48b046b8a252a |
|
MD5 | 35f1c6421a055c91d68c8e57dfbdcc54 |
|
BLAKE2b-256 | e784a0143498b75ff15680a4d5a625f9567bfa4153e493e4edb18c2246dbef3a |