- Posts: 348
- Thank you received: 41
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Equal-sized groups for survey
- Jmantysalo
- Topic Author
- Offline
- Platinum Member
However the distribution will probably not be very equal-sized, as the number of people taking survey is quite small. Is there a workaround for this?
For example, can I refer to number of people already filled the survey in expression manager and then just compute the remainder when dividing by ten?
- Joffm
- Offline
- LimeSurvey Community Team
- Posts: 12888
- Thank you received: 3965
as long as the quota management of LS is as basic, you have to query the database to see how many respondents already answered the different versions of the survey.
Do an ajax call in the first question; query the database by direct access or by the API.
Then you should use a "least filled" approach.
Do the respondents get an incentive?
If not, it shouldn't be an issue if you just wait until you have ten responses for each version. The slight overquote in some versions you may remove at random.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
- Jmantysalo
- Topic Author
- Offline
- Platinum Member
- Posts: 348
- Thank you received: 41
Joffm wrote: Do an ajax call in the first question; query the database by direct access or by the API.
Thanks. I have never used ajax, and only used API from an outside php page. Can you give some example about using API inside the survey?
- jelo
- Offline
- Platinum Member
- Posts: 5033
- Thank you received: 1257
If you had the technical feature to do it inside LimeSurvey, you might still have an uneven distribution after qualitycheck. Completed surveys by speedster or with bullshit are mostly removed afterwards. Even with a more sophisticated quota system (which is LimeSurvey lacking) this issue cannot be resolved.Jmantysalo wrote: However the distribution will probably not be very equal-sized, as the number of people taking survey is quite small.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
- Jmantysalo
- Topic Author
- Offline
- Platinum Member
- Posts: 348
- Thank you received: 41
jelo wrote: Completed surveys by speedster or with bullshit are mostly removed afterwards. Even with a more sophisticated quota system (which is LimeSurvey lacking) this issue cannot be resolved.
This is true, of course, but having one problem is better than having two.
- tpartner
- Offline
- LimeSurvey Community Team
- Posts: 10099
- Thank you received: 3589
The API cannot be used from within LimeSurvey (yet). You will need to make an AJAX call to a remote PHP file that uses the API.Can you give some example about using API inside the survey?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
- Jmantysalo
- Topic Author
- Offline
- Platinum Member
- Posts: 348
- Thank you received: 41
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13597
- Thank you received: 2487
Use gitlab.com/SondagesPro/ExportAndStats/getStatInSurvey
To do a JS solution (hidding biggest choice).
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.
- Jmantysalo
- Topic Author
- Offline
- Platinum Member
- Posts: 348
- Thank you received: 41
- holch
- Offline
- LimeSurvey Community Team
- Posts: 11639
- Thank you received: 2737
It would be roughly the same problem as for the rand(1,10), probably.
Now if you know all 100 respondents and you are sure all will participate and complete, than you could maybe create a token table and randomly assign the different "paths" to the respondents.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
- Jmantysalo
- Topic Author
- Offline
- Platinum Member
- Posts: 348
- Thank you received: 41
holch wrote: Savedid is given to anyone that start the survey. So it does not guarantee that you have x respondents completed if there are x Savedids that end with 1 for example.
It would be roughly the same problem as for the rand(1,10), probably.
I think it will be at least as good as using rand().
Anyways, kind of strange that one can do about everything but can't refer to quota or number of complete responses. Maybe something like getStatInSurvey-plugin will be part of core in the future.
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13597
- Thank you received: 2487
github.com/LimeSurvey/LimeSurvey/pull/13...187a239308679b427506Jmantysalo wrote: Anyways, kind of strange that one can do about everything but can't refer to quota or number of complete responses. Maybe something like getStatInSurvey-plugin will be part of core in the future.
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.