Welcome to the LimeSurvey Community Forum

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

How to randomize group order while keeping subgroups together?

More
3 weeks 44 minutes ago #273042 by KatiaPhilippot
(Write here your question/remark)Please help us help you and fill where relevant:
Your LimeSurvey version:   LimeSurvey Community Edition Version 6.15.20+251021
Own server or LimeSurvey hosting: My institutiion 
Survey theme/template: Vanila 

Hello everyone,I’m trying to set up a questionnaire with the following structure:
  • GROUPE Q1  (1 question)
  • GROUPE CE 2.1 (4 questions)
  • GROUPE CE 2.2 (4 questions)
  • GROUPE CE 2.3 (4 questions)
  • GROUPE CE 2.4 (4 questions)
  • GROUPE JC1.1 (2 questions)
  • GROUPE JC1.2 (2 questions)
Goal:
I want to randomize the three main sections: GROUPE Q1, GROUPE Q2, and GROUPE Q3.
So far, that’s easy — I can simply use the same “Randomization group name”.Problem:
I need the subgroups Q2.1, Q2.2, Q2.3, and Q2.4 to move together as one block (for ex : I want to avoid an order like Q2.2 → Q1 → Q2.1 but i want  Q1 → Q2.1 → Q2.2 )
These four subgroups should always remain consecutive. I learnt from this forum that there is no "super-groups" and I tried the tpartner 's  solution from this page : forums.limesurvey.org/forum/design-issue...tion-and-group-order (i can't see  Joffm's  solution)
But i am not sure that it will work for me since : 
  1. It would create far too many questions to manage individually (which makes it overly complex), and
  2. I want to randomize the subgroups from Q2.1 to Q2.4 without randomizing the questions that are inside each subgroups
So i tried this solution 

Attachment not found

But i feel like it might have a simplier solution.
Explanation of the solution attached : Here I have 6 scenarios of the randomization. 
I set up a solution where, for scenarios 1 and 2, group Q is displayed in first position (Q_1_2).
Then, I created another group (CE1_1_3_4) which is displayed in second position for scenario 1 (since group Q has already been seen), and in first position for scenarios 3 and 4, and so on.

Hope my explanation was clear enough for you to understand. 

Thanks in advance for any suggestions !

 





 

Please Log in to join the conversation.

More
2 weeks 6 days ago #273046 by Joffm
Sorry, but I am really confused.

Your lss export doesn't match your above requirement at all.

  • GROUPE Q1  (1 question)
  • GROUPE CE 2.1 (4 questions)
  • GROUPE CE 2.2 (4 questions)
  • GROUPE CE 2.3 (4 questions)
  • GROUPE CE 2.4 (4 questions)
  • GROUPE JC1.1 (2 questions)
  • GROUPE JC1.2 (2 questions)

You wrote

I need the subgroups Q2.1, Q2.2, Q2.3, and Q2.4

Where are they?
What is Groupe CE? Are these the subgroups of Q1? Why these different names?
And what is Groupe JC? Are these seperate groups that do not belong to this randomisation?

And about my solution that you didn't find: It was based on the fact that in the questions there only were displayed different images.
So there was created a random order at the beginning and the images were piped in. The questions themselves were always in the same order.

Please send a lss export that matches your first requirement AND contains real questions (not only text display questions).
Otherwise we can't decide if a solution with tayloring is possible.

Joffm 

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

Please Log in to join the conversation.

More
2 weeks 6 days ago #273048 by KatiaPhilippot
=11.0ptFirst of all, thank you very much for your quick response!=11.0ptSorry, I realise I wasn't very clear. =11.0ptFor a little context: =11.0ptWe want to conduct an experiment in experimental economics. After answering a few questions and watching a video beforehand. We will ask participants to i) answer a questionnaire (‘questionnaire about your beliefs’) ii) play a game : a conjoint experiment with 2 choice cards (‘choice card no. 1’, ‘choice card no. 2’) and iii) then play another game: a charity game. =11.0ptThe idea is that I want participants to see i) questionnaire ii) conjoint exp iii) charity game in a random order. But there is 2 difficulties :=10.0pt·         =11.0ptBefore they play the games, I want to include an explanatory text + 2 comprehension questions (see groups : ‘experimental partner – explanation; charity game: explanation’) and give them a second chance if they get the comprehension questions wrong (see groups: ‘experimental partner – new attempt; charity game: new attempt’). =10.0pt·         =11.0ptPlus, the conjoint experiment will also contain 2 choice cards (this group contain 1 question that show 2 scenarios + 2 questions about their prefered scenario – the 3 questions must be grouped together in one group to be seen at the same time). =11.0ptIn summary, here is the body of my questionnaire (here the lss:  

File Attachment:

File Name: limesurvey...3873.lss
File Size:162.24 KB
) =11.0pt• Question on belief (Q)=11.0pt• Game 1: Conjoint experiment (CE)=10.0pt·         =11.0ptConjoint experiment – explanations =10.0pt·         =11.0ptConjoint experiment – retry =10.0pt·         =11.0ptConjoint card no. 1 =10.0pt·         =11.0ptConjoint card no. 2 =11.0pt• Game 2: Charity game (JC)=10.0pt·         =11.0ptCharity game – Explanations =10.0pt·         =11.0ptCharity game – retry=10.0pt·         =11.0ptCharity game - choice
=11.0ptHere i tried a solution of my probleme but it is probably too complex:  
=11.0pt• =11.0ptLink :

File Attachment:

File Name: limesurvey...3525.lss
File Size:408.16 KB
=11.0ptI have completely rewritten it so that the titles match my questionnaire and so that it is (hopefully) more understandable. (sorry if there is any french sentences left coz i needed to translated to be more understanble for the english community)=11.0pt• Explanations: =11.0ptThe numbers associated with the group titles (from 1 to 6) correspond to the number of possible scenarios (6 possibilities). (Example: Questions on beliefs 1_2: means that when random == 1 or 2, the questionnaire must be visible first. Similarly, when ‘spouse experiment – explanations 1_3_4’ must be visible in the second position in scenario 1 (because the questionnaire has already been released) and in the first position in scenarios 3 and 4 (because in these scenarios, the questionnaire has not yet been released).

I hope my explanations will be clearer this time.=11.0pt

Please Log in to join the conversation.

More
2 weeks 6 days ago #273052 by holch
Not sure what happened there, but your post is basically "unreadable" with all the "11.0pt" mixed in there.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

More
2 weeks 6 days ago - 2 weeks 6 days ago #273054 by KatiaPhilippot
I don't understand why there is "11.0pt". Here my text without (I hope) :

First of all, Thank you very much for your quick response ! 

Sorry, I realise I wasn't very clear

Here some context : We want to conduct an experiment in experimental economics. After answering a few questions and watching a video , we will ask participants to i) answer a questionnaire (questionnaire about your beliefs in the lss file) ii) play a game : a conjoint experiment with 2 choice cards (choice card no.1, choice card no.2) and iii) then play an other game : a charity game.

The idea is that I want participants to see i) questionnaire ii) conjoint experiment iii) charity game in a random order. 

But there is difficulties : Before they play the games, i want to include an explanatory text + 2 comprehension questions (see groups : conjoint experiment ( explanation; charity game - explanation) and then give them a second chance if they don't answer correctly (see groups : conjoint experiment - retry ; charity game - retry).

Plus, the conjoint experiment will also contain 2 choice cards (this group contain 1 question that show 2 scenarios + 2 questions about their prefered scenario - The 3 questions must be grouped together in one group to be seen at the same time).

Here the link for the survey :  

File Attachment:

File Name: limesurvey...3873.lss
File Size:162.24 KB

To sum up, here the body of my questionnaire : 
i) Question on beliefs
ii) Conjoint experiment : ii.1) Explanations --> ii.2) Retry --> ii.3 (choice card 1 and 2) OR (choice card 2 or 1)
iii) Charity game :  iii.1) Explanations --> iii.2) Retry --> iii3. Choice

Here i tried a solution of my probleme but it is probably too complex :  

File Attachment:

File Name: limesurvey...3525.lss
File Size:408.16 KB


I have completely rewritten it then the titles match my questonnaire and so that it is (hopefully) more understandable (sorry of there is any french sentences left coz i translated it ti be more understandable for the english community)

Explanations : The numbers associated with the group titles (from 1 to 6) correspond to the number of possible scenarios (6 possibilities). 
Example : Questions on belieds 1_2 means that when random == 1 or 2, the questionnaire must be visible first. Similartly when conjoint experiment - explnations 1_3_4 must be visible in the second position in scenario 1 (coz the questionnaire has arleady been released) and in the first position in scenario 3 and 4 (coz in these scenarios, the questionnaire has not yet been released). 

I hope my explanations will be clearer this time but i agreee that it could be complex to understand ! 

Thank you again !
Last edit: 2 weeks 6 days ago by KatiaPhilippot.

Please Log in to join the conversation.

More
2 weeks 6 days ago - 2 weeks 6 days ago #273057 by Joffm
Hi,
I should say: In this case the doubling of groups is the easiest and best way.

But you can shorten your survey.
There is no need to create three questions in each "Choice card".
You can use the often shown "conjoint" example.
Here a quick adaption of the old "green apple - banana" example.
 

And as LimeSurvey is based on bootstrap 5 you should use the included features to show a popover.
[url] getbootstrap.com/docs/5.3/components/popovers/ [/url]
I just copied the example from the bootstap docs.

The same in the Charity choice. There is no need to have the explanation in a separate "text display"

Later I will send a lss export with my ideas.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 weeks 6 days ago by Joffm.

Please Log in to join the conversation.

More
2 weeks 5 days ago - 2 weeks 5 days ago #273060 by Joffm
As promised here a small sample of the "conjoint" question.
 
 

File Attachment:

File Name: limesurvey...4744.lss
File Size:48.33 KB


Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 weeks 5 days ago by Joffm.

Please Log in to join the conversation.

More
2 weeks 4 days ago #273064 by Joffm
And here the fiull survey without "groups in groups".
In my opinion this should work for you.
 

File Attachment:

File Name: limesurvey...73_J.lss
File Size:141.3 KB


Joffm

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

Please Log in to join the conversation.

More
2 weeks 4 days ago #273070 by KatiaPhilippot
Hello Joofm,

Thank you very much for your answers and for the time you have spent on this. I think it will help me a lot!

However, I forgot to mention that I needed to add a 4 socio-demographic questions : i) gender ii) age iii) education and iv) postcode. I would like the questions to be visible on a single page and with the parameters you implement, it would be not possible,right ?

Sorry, I should have shared my entire questionnaire with you, but I'm not familiar with forum best practices.

Best regards

Katia  

Please Log in to join the conversation.

More
2 weeks 4 days ago #273076 by Joffm
Hi,

I forgot to mention that I needed to add a 4 socio-demographic questions : i) gender ii) age iii) education and iv) postcode.


Of course there is a way to do this.
Use a question of type "multiple text" and convert some fields (gender, education) to drop-downs.
You have only one question

Again a rough example.
Code:
<script type="text/javascript" charset="utf-8">
    $(document).on('ready pjax:complete',function()    {
        var qID = {QID};        
 
        // Define the select element (dropdown)
        var prov1 = '<select id="prov1" class="form-control">\
                        <option value="">--Please, select--</option>\
                        <option value="1">male</option>\
                        <option value="2">female</option>\
                        <option value="3">something else</option>\
                        <option value="4">no answer</option>\
                    </select>';
 
        var prov2 = '<select id="prov2" class="form-control">\
                        <option value="">--Please, select--</option>\
                        <option value="1">Level 1</option>\
                        <option value="2">Level 2</option>\
                        <option value="3">Level 3</option>\
                        <option value="4">no answer</option>\
                    </select>';
 
        // Hide the text input
        $('#question'+qID+' .question-item:eq(0) input[type="text"]').hide();
        $('#question'+qID+' .question-item:eq(2) input[type="text"]').hide();
 
        // Insert the select elements
        if($('#question'+qID+' .question-item:eq(0) select').length == 0) {
            $('#question'+qID+' .question-item:eq(0) input[type="text"]').before(prov1);
        }        
         
        if($('#question'+qID+' .question-item:eq(2) select').length == 0) {
            $('#question'+qID+' .question-item:eq(2) input[type="text"]').before(prov2);
        }        
 
        // Initially select an option if the question has already been answered
        $('#question'+qID+' select').each(function(i) {
            if($.trim($(this).next('input[type="text"]').val()) != '') {
                $(this).val($.trim($(this).next('input[type="text"]').val()));
            }
        });
 
        // Listener on the dropdowns - insert selected values into hidden text input
        $('#question'+qID+' select').change(function() {
            var thisInput = $(this).next('input[type="text"]');
            $(thisInput).val($(this).val());
            checkconditions($(thisInput).attr('value'), $(thisInput).attr('name'), 'text');
        });
 
        // Some styles
        $('#question'+qID+' select').css({
        'margin':'0.3em 0 0 0'
        });
    });
</script> 

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