Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Pseudo randomization

  • slowking
  • slowking's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 11 months ago #119223 by slowking
Pseudo randomization was created by slowking
Hi!
Let's suppose that I've created survey with two randomly assigned versions (let's say version 1 and version 2) (via rand(x, y) in hidden question and relevance equation). Of course it is possible that all taken surveys will be version 2. Is there a way to store somewhere somehow number of taken surveys and manipulate randomness? For example something like this

IF version1number - version2number > 10 THEN take survey 2
IF version2number - version1number > 10 THEN take survey 1
ELSE take random survey

(Sorry for poor english :) )
The topic has been locked.
More
8 years 11 months ago #119229 by Ben_V
Replied by Ben_V on topic Pseudo randomization
HI,
Maybe it's ok for you this way .
The only important think is you need a welcome page or a dummy 1st group. (won't work on the 1 first page)

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago #119238 by tpartner
Replied by tpartner on topic Pseudo randomization
Yeah, as Ben suggests, using the SAVEDID will work. But note that all responses get a new ID, regardless of whether the survey is completed so you still may not get a perfect distribution for completed surveys.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose