Closed leeper closed 5 years ago
This can probably be solved by specifying left-hand-side assignments that use the feature name and the level name rather than just the level name (which have been incorrectly assumed to be unique): https://github.com/leeper/cregg/blob/master/R/mm_diffs.R#L51-L90
Moved from @m-jankowski at #13:
This is also a problem when using mm_diffs().
In my case, I wanted to conduct a subgroup analysis conditional on the gender of the respondents (labeled as "Male" or "Female"). The conjoint experiment, however, also contained levels with these labels ("Male" and "Female"). Particularly problematic is that mm_diffs() did not throw an error message, but returned wrong estimates without any warnings.
Here is an artificial example using the immigration data: