Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Conjoint Table - Exclusion of Identical Profiles

More
3 hours 39 minutes ago #273264 by PhilippBien
Please help us help you and fill where relevant:
Your LimeSurvey version: [ 6.16.1 ]
Own server or LimeSurvey hosting: Own Server
Survey theme/template:
==================
Dear Lime Community,

I am currently working on designing a conjoint table with two profiles. Respondents are asked to choose between one of the two profiles. The table is based on radomized variables. Because there is only a total of 18 profile options, there is a rather high likelihood that respondents will see two identical profiles. This is a situation, we want to avoid, because it does not make much sense to ask people about which option they prefer if the provided options are identical. 

Is there a way in which we can "redraw" the random variables, when this happens? I am imagining a if-condition that specifies a condition in which all of the two randomization variables for each row of the table are equal. When this condition is met, all randomization variables should be drawn again, until the two options are different (i.e. there is at least one row, where the randomization variables are not equal to one another).

Below you'll find the table code. Apologies, if this issue has been adressed elsewhere already. This is my first forum post. If that is the case, please point me in the right direction. Thanks heaps!!

<span style="font-size:16px;">
<style type="text/css">table {
  span-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

td, th {
  border: 1px solid black;
  text-align: left;
  padding: 8px;
}

  th:nth-child(1), td:nth-child(1) {
    width: 200px;
  }
  
  th:nth-child(2), td:nth-child(2),
    th:nth-child(3), td:nth-child(3) {
        width: 400px;
  }

tr:nth-child(even) {
  background-color: #dddddd;
}
</style>
</span>
<table>
    <tbody>
        <tr>
            <th> </th>
            <th><span style="font-size:16px;">Vorschlag A</span></th>
            <th><span style="font-size:16px;">Vorschlag B</span></th>
        </tr>
        <tr>
            <td><span style="font-size:16px;"><strong>Wer sollte Gesetze vorschlagen?</strong></span></td>
            <td><span style="font-size:16px;">{if(M1CT1rand1a == 1,"Die Europäische Kommission",if(M1CT1rand1a == 2,"Die Europäische Kommission und das Europäische Parlament",if(M1CT1rand1a == 3, "Die Europäische Kommission und der Europäische Rat")))}</span></td>
            <td><span style="font-size:16px;">{if(M1CT1rand1b == 1,"Die Europäische Kommission",if(M1CT1rand1b == 2,"Die Europäische Kommission und das Europäische Parlament",if(M1CT1rand1b == 3, "Die Europäische Kommission und der Europäische Rat")))}</span></td>
        </tr>
        <tr>
            <td><span style="font-size:16px;"><strong>Wer sollte über die Gesetzesvorschläge entscheiden?</strong></span></td>
            <td><span style="font-size:16px;">Der Ministerrat und das Europäisches Parlament</span></td>
            <td><span style="font-size:16px;">Der Ministerrat und das Europäisches Parlament</span></td>
        </tr>
        <tr>
            <td><span style="font-size:16px;"><strong>Wer sollte Gesetze durchsetzen?</strong></span></td>
            <td><span style="font-size:16px;">{if(M1CT1rand3a == 1,"Die Europäische Kommission",if(M1CT1rand3a == 2,"Die Europäische Kommission, aber der Europäische Rat kann Entscheidungen der Kommission blockieren"))}</span></td>
            <td><span style="font-size:16px;">{if(M1CT1rand3b == 1,"Die Europäische Kommission",if(M1CT1rand3b == 2,"Die Europäische Kommission, aber der Europäische Rat kann Entscheidungen der Kommission blockieren"))}</span></td>
        </tr>
        <tr>
            <td><span style="font-size:16px;"><strong>Wer sollte Gesetze aussetzen können?</strong></span></td>
            <td><span style="font-size:16px;">{if(M1CT1rand4a == 1, "Der Ministerrat zusammen mit dem Europäischen Parlament im Rahmen des normalen Gesetzgebungsverfahrens", if(M1CT1rand4a == 2,"Der Europäischer Rat durch Notfallentscheidungen", if(M1CT1rand4a == 3, "Die Europäische Kommission durch Notfallentscheidungen")))}</span></td>
            <td><span style="font-size:16px;">{if(M1CT1rand4b == 1, "Der Ministerrat zusammen mit dem Europäischen Parlament im Rahmen des normalen Gesetzgebungsverfahrens", if(M1CT1rand4b == 2,"Der Europäische Rat durch Notfallentscheidungen", if(M1CT1rand4b == 3, "Die Europäische Kommission durch Notfallentscheidungen")))}</span></td>
        </tr>
    </tbody>
</table>

<p> </p>

 

Please Log in to join the conversation.

More
53 minutes ago #273267 by Joffm
Please, do not double post.
If you read the advice in the German part, you'd seen that the first post of a new user has to be approved by a moderator before it is visible.
 

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose