0 votes
in SoSci Survey (English) by s348533 (110 points)

Hello
I am making a questionnaire for my thesis and I have make a randomizer that will give each participant different conditions but same set of questions. However, I want to set a quota/limit on the amount each conditions appear. After, it reach the amount that condition will not appear again. How do I do it?
Thank you

by SoSci Survey (362k points)
In the default setting, the random generator will draw each condition equally often - that means if one hits the limit, all others will as well. What shall happen, then?
by s348533 (110 points)
Is it possible to set a limit for each conditions? Because I want 60 responses from each conditions. I know that randomizer will random 1 condition for each participant. If the responses of 1 condition reached 60, I want randomizer to stop giving that condition and only randomly give the other 2 conditions when both reach 60 then stop excepting response. Is it possible?

1 Answer

0 votes
by SoSci Survey (362k points)

Okay, that's easy. Simply use a random generator witht he default settings.

And then use the code from Display Individual Codes or Coucher Codes with a "stop" condition after the random generator has been empties 60-times (not 1 time like in the manual).

if (value('RG01_CP') > 60) {
  setStatus('quota full');
}

Use a panel redirect element (to be found with the questions) do decide what text to display when the quota is full. As an option, you can also use this PHP code without the panel redirect element:

if (value('RG01_CP') > 60) {
  text('AB01');
  buttonHide();
  pageStop();
}
by s348533 (110 points)
edited by s348533
I decided to use the quota function and set the quota limit of each condition to 60. Is there a way for me to test if the quota work or not? Also, I put the quota function after the randomizer function, is that correct?
Thank you
by SoSci Survey (362k points)
The quota function has not been intended for that kind of use, but should work.

Just run the questionnaire a few times and check the counts in the quota element. If it counts up, it has worked. Also mind not to forget the panel redirect element so that the quota stop will have an effect.

If course, you can also set the quota limits to 2 in order to give it a test.

However, I still think that that 5 lines of the second solution are way more simple.

Willkommen im Online-Support von SoSci Survey.

Hier bekommen Sie schnelle und fundierte Antworten von anderen Projektleitern und direkt von SoSci Survey.

→ Eine Frage stellen


Welcome to the SoSci Survey online support.

Simply ask a question to quickly get answers from other professionals, and directly from SoSci Survey.

→ Ask a Question

...