Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • help needed

    Dear all,

    I please need help! I did a Discrete Choice Experiment and out of the responses I did a dataset. See below. Now I try to fit in the datas in Stata. But unfortunately I (almost) always get an error. Like this for example:
    . cmset id Cset alt
    note: case identifier _caseid generated from id and Cset.
    note: panel by alternatives identifier _panelaltid generated from id and alt.
    at least one choice set has more than one instance of the same alternative
    r(459);

    Can you please see if in my data set something is wrong?

    Thank you very much in advance!
    Attached Files

  • #2
    What is this variable "alt"? The error message is exactly what it states.

    at least one choice set has more than one instance of the same alternative
    r(459);
    id=1 and Cset=3 has alt=1 twice. Perhaps you meant

    Code:
    cmset id Cset Alt
    as the last variable in the sequence defines alternatives present in the choice set.

    In future, please have more informative titles as other people benefit from discussions in Statalist, and one way they can find relevant information is through the titles of the threads.
    Last edited by Andrew Musau; 20 Oct 2023, 03:51.

    Comment


    • #3
      What you are showing looks like a spreadsheet display to me. It's best to show directly what Stata sees using dataex.

      Comment

      Working...
      X