Skip to content

simulateDCE

Simulate Data for Discrete Choice Experiments

v0.3.2 · May 4, 2026 · MIT + file LICENSE

Description

Supports simulating choice experiment data for given designs. It helps to quickly test different designs against each other and compare the performance of new models. The goal of 'simulateDCE' is to make it easy to simulate choice experiment datasets using designs from 'NGENE', 'idefix' or 'spdesign'. You have to store the design file(s) in a sub-directory and need to specify certain parameters and the utility functions for the data generating process. For more details on choice experiments see Mariel et al. (2021) <doi:10.1007/978-3-030-62669-3>.

Downloads

CRAN

201

Last 30 days

22020th

476

Last 90 days

561

Last year

Trend: -18.3% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

19

Last 90 days

84

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

11

Last 7 days

21

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 7, 2026
ERROR r-devel-linux-x86_64-debian-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘SE_Agri-vignette.Rmd’ using rmarkdown
--- finished re-building ‘SE_Agri-vignette.Rmd’

--- re-building ‘SE_drive-vignette.Rmd’ using rmarkdown
--- finished re-building ‘SE_drive-vignette.Rmd’

...[truncated]...
.
Caused by error in `Rcpp::sourceCpp()`:
! Error 2 occurred building shared library.
--- failed re-building ‘csa-vignette.Rmd’

SUMMARY: processing the following file failed:
  ‘csa-vignette.Rmd’

Error: Vignette re-building failed.
Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 16, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 13, 2026
ERROR r-devel-linux-x86_64-debian-clang

tests

Running ‘testthat.R’ [40s/71s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional 
...[truncated]...
t)
   24. └─base::.handleSimpleError(...)
   25.   └─purrr (local) h(simpleError(msg, call))
   26.     └─cli::cli_abort(...)
   27.       └─rlang::abort(...)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 111 ]
  Error:
  ! Test failures.
  Execution halted
OK 4 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 4, 2026

Dependency Network

Dependencies Reverse dependencies dplyr evd formula.tools ggplot2 kableExtra magrittr mixl psych purrr readr rmarkdown stringr tibble tictoc tidyr +5 more dependencies simulateDCE

Version History

3 tracked
new 0.3.2 May 4, 2026
update 0.3.1 ← 0.3.0 diff Jul 25, 2025
new 0.3.0 Jul 8, 2025