jhelvy / cbcTools

An R package with tools for designing choice based conjoint (cbc) survey experiments and conducting power analyses
https://jhelvy.github.io/cbcTools/
Other
5 stars 5 forks source link

error in check_inputs_design(): Modfed and dopt not included #35

Closed marilotte closed 3 months ago

marilotte commented 3 months ago

The code right now is:

# Check on restricted profile sets

if (profiles_restricted) {
  if (!method %in% c('random', 'full')) {
    stop(
      'Restricted profile sets can only be used with the "random", "full" ',
      '"dopt", or "Modfed" methods'
    )
  }
}

Because of this it's not possible to use a restricted profile with either Modfed or dopt methods. This sould be an easy fix, however :)

Cheers! Marianne

jhelvy commented 3 months ago

This was already fixed here, but I don't believe the fix is available on CRAN yet. You can install from Github to get the latest.