- Posts: 7
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
3 years 10 months ago #198596
by irismpi
Randomization order in export-file & link 2 randomized questions together was created 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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12791
- Thank you received: 3941
3 years 10 months ago #198599
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Randomization order in export-file & link 2 randomized questions together
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11758
- Thank you received: 2753
3 years 10 months ago #198600
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Randomization order in export-file & link 2 randomized questions together
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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
3 years 10 months ago #198601
by DenisChenu
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 …
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.
Replied by DenisChenu on topic Randomization order in export-file & link 2 randomized questions together
Create 3 random equation :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).
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 …
Use randS …The fourth question of each group is linked to the third question. S and T belong together.
There are no order here …After we have collected the data, we would like to see in which order each participant answered the questions.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
3 years 10 months ago #198704
by irismpi
Replied by irismpi on topic Randomization order in export-file & link 2 randomized questions together
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.).
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12791
- Thank you received: 3941
3 years 10 months ago #198710
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Randomization order in export-file & link 2 randomized questions together
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
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.