- Posts: 3
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Presenting randomly 10 group of question among 76
- NKaczmarek2
- Topic Author
- Offline
- New Member
Less
More
3 years 8 months ago #203851
by NKaczmarek2
Presenting randomly 10 group of question among 76 was created by NKaczmarek2
Hello everyone,
I have to create a study with 76 group of question and in order to reduce experimental mortality i only want to present 9 or 10 group of question to each participant. Those 9 or 10 group should be selected randomly.
Does someone knows a mean to do so?
Kind regards,
Nicolas Kaczmarek
I have to create a study with 76 group of question and in order to reduce experimental mortality i only want to present 9 or 10 group of question to each participant. Those 9 or 10 group should be selected randomly.
Does someone knows a mean to do so?
Kind regards,
Nicolas Kaczmarek
The topic has been locked.
- Joffm
- Online
- LimeSurvey Community Team
Less
More
- Posts: 12942
- Thank you received: 3979
3 years 8 months ago #203857
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Presenting randomly 10 group of question among 76
Hi,
1. Give ALL groups the same "randomization group name"
2. Use the variable "gseq", that gives the sequential number of the group
In the group relevance equation enter something like "Qx.gseq<10" where Qx is the code of the first question of this group.
manual.limesurvey.org/ExpressionScript_-...#Access_to_variables
Qcode.gseq the sequential number of the group, starting from 0 {gender.gseq}
Remember "gseq" counts ALL groups. So if there are some groups before your randomly shown, you have to consider this.
Joffm
1. Give ALL groups the same "randomization group name"
2. Use the variable "gseq", that gives the sequential number of the group
In the group relevance equation enter something like "Qx.gseq<10" where Qx is the code of the first question of this group.
manual.limesurvey.org/ExpressionScript_-...#Access_to_variables
Qcode.gseq the sequential number of the group, starting from 0 {gender.gseq}
Remember "gseq" counts ALL groups. So if there are some groups before your randomly shown, you have to consider this.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- tpartner
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
3 years 8 months ago #203858
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Presenting randomly 10 group of question among 76
More discussion here -
forums.limesurvey.org/forum/can-i-do-thi...lect-question-groups
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- NKaczmarek2
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
3 years 8 months ago #203917
by NKaczmarek2
Replied by NKaczmarek2 on topic Presenting randomly 10 group of question among 76
Hi
Thanks for your response. I have to admit that i never try to use equation on limesurvey but i'll try. I hope it's not to complicated for me.
I have an additionnal question:
If i have one question group that should be shown to all participant in the begining (selection) and in the end (sociodemographic information), would this still work with gseq, or should i put my two question group in the begining for that?
Kind regards,
Nicolas
Thanks for your response. I have to admit that i never try to use equation on limesurvey but i'll try. I hope it's not to complicated for me.
I have an additionnal question:
If i have one question group that should be shown to all participant in the begining (selection) and in the end (sociodemographic information), would this still work with gseq, or should i put my two question group in the begining for that?
Kind regards,
Nicolas
The topic has been locked.
- NKaczmarek2
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
3 years 8 months ago #203918
by NKaczmarek2
Replied by NKaczmarek2 on topic Presenting randomly 10 group of question among 76
Hi,
Thanks, it will help me to see more clearly how to use gseq.
Kind regards,
Nicolas
Thanks, it will help me to see more clearly how to use gseq.
Kind regards,
Nicolas
The topic has been locked.
- Joffm
- Online
- LimeSurvey Community Team
Less
More
- Posts: 12942
- Thank you received: 3979
3 years 8 months ago #203926
by Joffm
Your "selection" has number 0
the first displayed random group number 1
the second displayed random group number 2
...
the tenth displayed random group number 10
I wrote this
So, if you want to display 10 random groups the condition is Qx.gseq<11
Joffm
By the way:
Display {self.gseq} in the question texts and you will see the result.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Presenting randomly 10 group of question among 76
As you saw ".gseq" shows the sequential number starting with 0.in the begining (selection) and in the end (sociodemographic information),
Your "selection" has number 0
the first displayed random group number 1
the second displayed random group number 2
...
the tenth displayed random group number 10
I wrote this
So if there are some groups before your randomly shown, you have to consider this.
So, if you want to display 10 random groups the condition is Qx.gseq<11
Joffm
By the way:
You should try these things.would this still work with gseq
Display {self.gseq} in the question texts and you will see the result.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.