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
  • NKaczmarek2's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 8 months ago #203851 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
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago #203857 by Joffm
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

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
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.
The topic has been locked.
  • NKaczmarek2
  • NKaczmarek2's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
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
The topic has been locked.
  • NKaczmarek2
  • NKaczmarek2's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
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
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago #203926 by Joffm

in the begining (selection) and in the end (sociodemographic information),

As you saw ".gseq" shows the sequential number starting with 0.

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:

would this still work with gseq

You should try these things.
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.

Lime-years ahead

Online-surveys for every purse and purpose