Welcome to the LimeSurvey Community Forum

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

Experimental randomisation

  • VickyLyonEPP
  • VickyLyonEPP's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 3 months ago #186358 by VickyLyonEPP
Replied by VickyLyonEPP on topic Experimental randomisation
Thank you so much! I had copied the equation somewhere and didn't realize. It works now! :)
The topic has been locked.
  • VickyLyonEPP
  • VickyLyonEPP's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 3 months ago #186521 by VickyLyonEPP
Replied by VickyLyonEPP on topic Experimental randomisation
I've realized that I've enough participants in group 2, but not enough in groups 1, 3, and 4. Is there any way to rewrite
rand(1,4)
to exclude the number 2 and only randomly assign 1, 3, and 4?

Thank you! !
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 3 months ago #186522 by tpartner
Replied by tpartner on topic Experimental randomisation
Set the equation to rand(1, 3) and then change the group relevance.

Group 1: randomnumber == '1'
Group 2: randomnumber == '99'
Group 3: randomnumber == '2'
Group 4: randomnumber == '3'

Cheers,
Tony Partner

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

Lime-years ahead

Online-surveys for every purse and purpose