Welcome to the LimeSurvey Community Forum

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

Randomly allocate with no EM?

  • HarryMoncreiff
  • HarryMoncreiff's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #156728 by HarryMoncreiff
Randomly allocate with no EM? was created by HarryMoncreiff
Hi

I am working with the newest version but the Expression Manager does not appear on the configuration tab.

At one point in my survey I am needing randomly allocate the participants one of 3 different questions (one control, 2 experimental), but I do not know how to do this without the EM?

Thanks in advance
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
7 years 3 months ago #156733 by DenisChenu
Replied by DenisChenu on topic Randomly allocate with no EM?
EM never appear on configuration tab ?

Else : Questioin type Equation, code ALEA, value (equation)
{alea(1,2)}

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
  • HarryMoncreiff
  • HarryMoncreiff's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #156736 by HarryMoncreiff
Replied by HarryMoncreiff on topic Randomly allocate with no EM?
Never seen the EM, all I see is "advanced", "users" and "settings". I have the basic edition.

Apologies but very new to LS so a bit confused by what you mean with the second part. So I should have one question group, the first with code ALEA with {alea(1,3)} as the logic (equation). Should I then have the following 3 questions as normal only with a relevance equation?

Thanks for your help
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
7 years 3 months ago #156737 by DenisChenu
Replied by DenisChenu on topic Randomly allocate with no EM?
I don't understand your point abot EM visible or not ?

Else:
One group with an hidden Equation code ALEA : equation set to {rand(1, 3)}

Then you question ALEA is filled with a integer 1 , 2 or 3.

After you can add condition with ALEA question. OR use Expression Manager ALEA==1 ALEA>1 etc …

See www.limesurvey.org/manual/Expression_Manager

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
  • HarryMoncreiff
  • HarryMoncreiff's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #156835 by HarryMoncreiff
Replied by HarryMoncreiff on topic Randomly allocate with no EM?
DenisChu

Thanks have got the randomisation working

Regarding access to the EM, I have attached a screenshot. Looking at other posts should it not be there?

Thanks again
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
7 years 3 months ago #156836 by DenisChenu
Replied by DenisChenu on topic Randomly allocate with no EM?
Oh yes ! The expression manager manual and example .

You're right : it was not here if debug=0 and you're not super-admin.

Please : best is to report the bug.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
  • HarryMoncreiff
  • HarryMoncreiff's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #156868 by HarryMoncreiff
Replied by HarryMoncreiff on topic Randomly allocate with no EM?
Thanks Denis have reported the bug

With no EM I used the below code in a preceding group to randomise the 3 groups. However from a test launch Group A has 25 respondents, Group B has 12 and C has 13. Although this could be at random I am concerned it is putting a weighting on Group A (2:1:1). It will not be feasible to edit the survey again when launched fully so wanted to double check.

<script>
$(function(){
$('body').hide()
var showNumberOfGroups = 1; //enter number of groups to randomly show.
var $cboxs = $('input:checkbox');
for(var i=0;i<1;i++){
$cboxs.eq(i).prop('checked',true);
}
document.getElementById('movenextbtn').click();
})
</script>

Any help would be greatly appreciated.

Thanks
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
7 years 3 months ago #156873 by DenisChenu
Replied by DenisChenu on topic Randomly allocate with no EM?
You can always use Expression Manager , even if the “help” are not shown .

Then you can use www.limesurvey.org/forum/can-i-do-this-w...te-with-no-em#156737 solution.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose