Hi,
this is only possible in theory.
1.
The obvious solution would be to use the answer id of the responses.
You know that each respondent gets an autoincrement id in the answer table.
This you access by {SAVEDID}.
{1+SAVEDID-2*floor(SAVEDID/2)}
So the approach is:
Group 1: odd IDs
Group 2: even IDs
Easy to implement, but in practice...?
What happens if respondents 3, 7, and 11 do not complete the survey?
You get this distribution: 1,2,2,1,2,2,1,2,2
2.
Now you might think: Let's take in account only the completed surveys.
To do this you have to use the plugin "getStatInSurvey".
Since Version 5.x. of LimeSurvey there is a core plugin "statFunction". You might consider an update. Your version is 2 years old.
Here we count the completed surveys and again
{1+Q0-2*floor(Q0/2)}
Group 1: odd number of completes
Group 2: even number of completes
Sounds good, but...
You only count completed surveys.
So, if three respondents start the survey, the number of completes will be "0", until the first completes.
So all three will be in group 1.
3.
Next idea, if the survey is token-based.
Predefine the group of each participant in an additional attribute. To do so, you may roll a dice or toss a coin.
But of course the same problems if some do not participate.
4.
In my opinion the best solution is:
Use a random number and watch the progress and the distribution. And wait until there are enough responses in each group.
If there is an overquote in one of them you may randomly remove some responses (Ask your grandmother which ones)
And there are some other options:
a. You create a random number (1-2)
Initially:
Group 1: randomnumber==1
Group 2: randomnumber==2
If you think there are enough responses in group1 but too few in group 2, change the relevance equation to
Group 1: randomnumber==0
Group 2: randomnumber ge 1
b. You create a random number (1-100)
Initially:
Group 1: randomnumber le 50
Group 2: randomnumber gt 50
If you think there are too many responses in group1 but too few in group 2, change the relevance equation to
Group 1: randomnumber le 30
Group 2: randomnumber gt 30
Keep in mind that you can't use the random number to determine the group.
At last:
You did not specify, what is "but my number of subjects is very low".
How much is "very low"?
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless