Skip to main content

Experimental designs for discrete choice models.

Project description

ChoiceDesign

Tests

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:

  • D-efficient and Db-efficient (Bayesian) designs based on a random swapping algorithm
  • Customisable utility functions (inspired by Biogeme. In previous versions, I relied on Biogeme functions. Now they're rewritten from scratch)
  • Designs with conditions over different attribute levels
  • Designs with blocks
  • Full-factorial designs
  • 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 repo.

How to contribute?

Any contributions to ChoiceDesign are welcome via this Git, or to my 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

  • Bierlaire, M. (2003). BIOGEME: A free package for the estimation of discrete choice models. In Swiss transport research conference.
  • 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

choicedesign-0.2.2.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

choicedesign-0.2.2-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file choicedesign-0.2.2.tar.gz.

File metadata

  • Download URL: choicedesign-0.2.2.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.1 CPython/3.13.1 Darwin/25.4.0

File hashes

Hashes for choicedesign-0.2.2.tar.gz
Algorithm Hash digest
SHA256 f5871fef298f8cb043841b3f06e6c5a51f237cd82dd21e4b91c4ecd262e6a525
MD5 e6e8cc70e75a1959d7a0f0d48575efbd
BLAKE2b-256 1c4835d57990af2b54ebacbd0dffab779bed4259098b22de368674c1bb343c08

See more details on using hashes here.

File details

Details for the file choicedesign-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: choicedesign-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.1 CPython/3.13.1 Darwin/25.4.0

File hashes

Hashes for choicedesign-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 008c4dac0635d4063d8d4f61a4160dc0bbb536b4511fa8e737821d11dd777c3d
MD5 582204035d643842fba6b1e5cb16e6f3
BLAKE2b-256 69c73f3719c02c1330c2c917f6e601cd1b659ab6121dddeadab177de2a5e9935

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page