Welcome to the LimeSurvey Community Forum

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

How to use/show the randomization sequence.

  • dirk01
  • dirk01's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188481 by dirk01
Hi,


For exampIe, I have 10 groups with 1 question (group 1.question1 -... - group 10.question10).


These 10 groups are randomized.


Before starting the survey I want to show the order in which the groups will follow.

For example :

In the following you'll have to answer questions about :

"group 7"
"group 1"
"group 3"
....


(where each group is a certain topic.)


I know the order in which the groups will follow using {question1.gseq} {question2.gseq} .... but i haven't figured out how to translate this to something like :


"group 7"
"group 1"
"group 3"
....


Kind regards,

Dirk

LimeSurvey
Version 3.16.0+190225
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188492 by DenisChenu
Replied by DenisChenu on topic How to use/show the randomization sequence.
Unsure it still work in 3.X but can be fixed: gitlab.com/SondagesPro/getQuestionOrder

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
More
4 years 7 months ago #188502 by jelo
This is not implemented in LimeSurvey.

DenisChenu points out a plugin "getQuestionOrder Plugin for LimeSurvey" he has written, which captures the randomization order into a question. It is unclear if the plugin works with your version of LimeSurvey. If there is an issue running the plugin, DenisChenu likes to get a bugreport that he might be able to fix it.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago - 4 years 7 months ago #188503 by Joffm
Hi,
you can do it by using an equation with the if-statement.

{if(question1.gseq==1,"Group1", if(question2.gseq==1,"Group2", if(question3.gseq==1,"Group3", if(question4.gseq==1,"Group4", if(question5.gseq==1,"Group5", if(question6.gseq==1,"Group6", if(question7.gseq==1,"Group7", if(question8.gseq==1,"Group8", if(question9.gseq==1,"Group9","Group10")))))))))}

{if(question1.gseq==2,"Group1",if(question2.gseq==2,"Group2",if(question3.gseq==2,"Group3",....
{if(question1.gseq==3,"Group1",if(question2.gseq==3,"Group2",if(question3.gseq==3,"Group3",...
...



Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 4 years 7 months ago by Joffm.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188513 by Joffm
Not to be misunderstood.
I didn't talk about a question of type equation.
Use the "text display" and enter your

"In the following you'll have to answer questions about :"
and the shown if-statements.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • dirk01
  • dirk01's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188517 by dirk01
Replied by dirk01 on topic How to use/show the randomization sequence.
Thx, I will test in the versions I'm current using.

Dirk
The topic has been locked.
More
4 years 7 months ago #188518 by jelo

dirk01 wrote: Thx, I will test in the versions I'm current using.

That should work in your version. But I don't know when qseq and gseq was introduced.

But I'm a bit confused about Joffm starting with 1.
Code:
.qseq - the question sequence (starting from 0)
.gseq - the group sequence (starting from 0)

That seems to have changed or the manual is wrong.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • dirk01
  • dirk01's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188519 by dirk01
Replied by dirk01 on topic How to use/show the randomization sequence.
Hi Joffm,

This is exactly what I was looking for.

Thank you very much, not the least for exactly showing how to do this.

This way we are able to randomize a series of topics (with each a number of questions) and showing the respondent in advance the order in which the topics will be shown.

In my questionnaire the respondent can choose which topics he or she wants to answer. To avoid that each time only the first topics will be answered - it's a long questionnaire - I use randomization and to be able to show the order of the topics for a particular respondent in advance, is nice!

Dirk



Dirk
The topic has been locked.
  • dirk01
  • dirk01's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188520 by dirk01
Replied by dirk01 on topic How to use/show the randomization sequence.
.qseg and .gseq do start counting at 0, so I will have to figure out the exact position of the first question of each group in my final questionnaire in order to construct the proper expressions Joffm suggested
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188521 by Joffm
To explain:
As long as there are no more informations as

These 10 groups are randomized.

Before starting the survey I want to show the order in which the groups will follow.


I assume that the text display is the first question and in a first group (gseq=0)
and the 10 randomized groups are following.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • dirk01
  • dirk01's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188523 by dirk01
Replied by dirk01 on topic How to use/show the randomization sequence.
I'll try to implement it today and upload an example for others to use.
The topic has been locked.
  • dirk01
  • dirk01's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188528 by dirk01
Replied by dirk01 on topic How to use/show the randomization sequence.
Hi,


In attachment a survey with 7 topics.

Topics 1-6 are randomized using group randomisation.

Topic 7 has always to be shown at the end .

Question 1 shows the order in which the randomized topics will be shown. (using question attribute ".gseq" and expressions)

Question 8 shows and records the randomization sequence using a multiple response question and attribute ".gseq" in the default values.

Kind regards,

Dirk


  • The following user(s) said Thank You: tpartner
    The topic has been locked.

    Lime-years ahead

    Online-surveys for every purse and purpose