Welcome to the LimeSurvey Community Forum

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

Randomization order in export-file & link 2 randomized questions together

  • irismpi
  • irismpi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 10 months ago #198596 by irismpi
Hi!

I would like to have a randomization-design with some restrictions (question 1) and I would like to know the order in which each participant answered all questions (question 2), but I don't know how to do this in LimeSurvey.

Question 1
We have a total of 10 question groups. Each group should always start with question P, followed by question D and at the end we have question S & T (combined).
We want to randomize these questions (like in the example below).
The first question of each group can be P(a), P(b), P(c) or P(d).
The second question of each group can be D(a), D(b), D(c) or D(d).
The third question of each group can be S(a), S(b), S(c) or S(d).
The fourth question of each group is linked to the third question. S and T belong together. So question S(a), should be followed by question T(a). S(b) should be followed by T(b). etc.

Is this possible?

The example below is with 4 groups (jus to get the idea):

Group1
P(b)
D(a)
S(d)
T(d)

Group2
P(a)
D(d)
S(a)
T(a)

Group3
P(d)
D(b)
S(c)
T(c)

Group4
P(c)
D(c)
S(b)
T(b)


Question 2
After we have collected the data, we would like to see in which order each participant answered the questions.
I've find something about Qcode.qseq / Qcode.gseq
But I don't know how to use this syntax.
I randomized the questions and added {P1.gseq} within the question P1. But if I export the data, I still cannot see the order in which the questions were presented.
Can some one explain how to use Qcode.qseq / Qcode.gseq? Or give another solution to how we can see the randomization order for each participant when we export the data-file.

Thanks!

Iris
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #198599 by Joffm
Hi,
To start with a question:
did you only show four small letters a,b,c,d, because you only showed four groups. Are there more in your real design?

As I see, small letters may be twice (or even three times?) in one group like here
Group4
P(c)
D(c)
S(b)
T(b)

And your second question
And to store the order of questions, you could take a question of type "multiple numeric".
As many subquestions as you have questions want to store.
as default answer enter

Important: If there is a question of type "multiple" or "matrix", you have to enter the Code of the (first) subquestion.



Group order (gseq) you may do the same. Here you enter the code of the (first) question


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: irismpi
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #198600 by holch
I can give you an answer to the first question:

Just create your question groups with P, D, S and T for a, b, c, d,

If you give each "P" question the same randomization group name (e.g. "P"), they will always be on the first position in the group, but randomly, e.g. P(a) could be randomly in the "P" position of each group. Same for all others.

The problem that I see is having S and T always the same. I don't think you can do this randomized in LS out of the box.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: irismpi
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #198601 by DenisChenu

The first question of each group can be P(a), P(b), P(c) or P(d).
The second question of each group can be D(a), D(b), D(c) or D(d).
The third question of each group can be S(a), S(b), S(c) or S(d).

Create 3 random equation :
randP : {is_empty(self.NAOK,rand(1,4),self.NAOK}
For each P question choose one number and set relevance to randP == 1 , randP == 2 …

The fourth question of each group is linked to the third question. S and T belong together.

Use randS …

After we have collected the data, we would like to see in which order each participant answered the questions.

There are no order here …
You have you randP, randD and randS to check what question are shown.

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 following user(s) said Thank You: irismpi
The topic has been locked.
  • irismpi
  • irismpi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 10 months ago #198704 by irismpi
Hi Joffm,

Thanks for your reply!
To answer your question at the beginning: the real design has 10 groups in total (so P(a) to P(j), D(a) to D(j), etc.).
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #198710 by Joffm
Hi, Iris,
well, the answer that holch and Denis gave is not affected.
You only change the range of the random numbers (randP, randD, randS) to rand(1,10)

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose