Welcome to the LimeSurvey Community Forum

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

Close only certain group of randomisation

  • ElsaBoulard
  • ElsaBoulard's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 4 months ago #244222 by ElsaBoulard
Close only certain group of randomisation was created by ElsaBoulard
LimeSurvey Community Edition
Version 3.28.14+220608
==================
Hi, I have 9 random group, and I would like to close only 2 of them (Group 4 and 8). For now, the code is {rand(1,9)}. What do i need to add ? 

Thanks !

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 4 months ago #244228 by Joffm
Replied by Joffm on topic Close only certain group of randomisation
Please, do not cross post.

You asked this in the French section already.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • ElsaBoulard
  • ElsaBoulard's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 4 months ago #244229 by ElsaBoulard
Replied by ElsaBoulard on topic Close only certain group of randomisation
Sorry, I'm looking for answer and didn't think it was disturbing.

Maybe you know the answer ?

Have a good day

Please Log in to join the conversation.

  • ElsaBoulard
  • ElsaBoulard's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 4 months ago #244575 by ElsaBoulard
Replied by ElsaBoulard on topic Close only certain group of randomisation
Hi,

Unfortunately, I'm still struggling with this. Please, do you know how to perform this manipulation ?

Thank you in advance,

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 4 months ago - 1 year 4 months ago #244604 by Joffm
Replied by Joffm on topic Close only certain group of randomisation
Hi,
here two rather easy options.

1. As it is absolutely irrelevant, which random number you assign to your groups, you may assign 
G1: randomnumber==1
G2: randomnumber==2
G3: randomnumber==3
G4: randomnumber==8
G5: randomnumber==4
G6: randomnumber==5
G7: randomnumber==6
G8: randomnumber==9
G9: randomnumber==7

And to close these two groups, just change your creation of the random number to (1-7)

2. Assign "randomnumber==0" to these two groups.
Add "randomnumber==4" and "randomnumber==8" to other groups, like
G1: randomnumber==1
G2: randomnumber==2 or randomnumber==4
G3: randomnumber==3
G4: randomnumber==0
G5: randomnumber==4
G6: randomnumber==5 or randomnumber==8
G7: randomnumber==6
G8: randomnumber==0
G9: randomnumber==7

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 1 year 4 months ago by Joffm.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose