Design and Analyze Choice-Based Conjoint Experiments
Overview
Design and evaluate choice-based conjoint survey experiments. Generate a variety of survey designs, including random designs, frequency-based designs, and D-optimal designs, as well as "labeled" designs (also known as "alternative-specific designs"), designs with "no choice" options, and designs with dominant alternatives removed. Conveniently inspect and compare designs using a variety of metrics, including design balance, overlap, and D-error, and simulate choice data for a survey design either randomly or according to a utility model defined by user-provided prior parameters. Conduct a power analysis for a given survey design by estimating the same model on different subsets of the data to simulate different sample sizes. Bayesian D-efficient designs using the 'cea' and 'modfed' methods are obtained using the 'idefix' package by Traets et al (2020) doi:10.18637/jss.v096.i03. Choice simulation and model estimation in power analyses are handled using the 'logitr' package by Helveston (2023) doi:10.18637/jss.v105.i10.
- Auto-encoding to dummy coding occurs for
cbc_choicesandcbc_powerif the design is detected to have a no_choice option. - Updated some of the print methods so that they don't error if the choices or design objects are modified by dplyr functions.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-30
- ERROR13 OK, 1 ERROR2026-03-10
Documentation
- Help pages
- 29 (6 internal)
- Examples that run
- 100%10 run in a plain check
- Exported functions with examples
- 71%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- Computing D-error in Choice Experiments HTML
- Generating Designs HTML
- Generating Profiles HTML
- Getting Started HTML
- Power Analysis HTML
- Simulating Choices HTML
- Specifying Priors HTML
- Variable Encoding HTML
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 59
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
7 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/jhelvy/cbctools on 2026-10-21.
GitHub Pages site last deployed 2026-06-24 · The repository has a site deploy workflow
pkgdown site last built 2026-06-24
Dependencies
Installing cbcTools adds 78 packages (46 with compiled code, 77 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.7.1Latest
- 0.6.42025-09-23 · diff ↗
- 0.6.32025-08-21 · diff ↗
- unarchivedReturned to CRAN2025-07-17
- 0.6.22025-07-17 · diff ↗ ·
removed 4 exports
cbc_balance, cbc_overlap, randLN, randNadded 7 exports
cbc_compare, cbc_decode, cbc_inspect, cbc_priors, cor_spec, int_spec, rand_spec - archivedRemoved from CRAN2025-04-19issues were not corrected despite reminders
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.5.02023-07-13 · diff ↗
- 0.4.0
- 0.3.42023-06-13 · diff ↗
- 0.3.32023-06-02 · diff ↗
- 0.3.2
- 0.3.02023-05-10 · diff ↗
- RR 4.3.0 released · 2023-04-21
Show 2 earlier eventsHide 2 earlier events
- 0.2.02023-02-28
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2023-02-28
- Total releases
- 11 / 3 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.5.0
- Download size
- 2.2 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("cbcTools")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.