How to randomise users of the Intervention to a particular group or condition
Randomisation in LifeGuide
A simple line of logic can be written to enable your intervention to automatically randomise end-users into different groups.
This is done using the command
randomnumber followed by the range of groups (as a numerical value) that you wish to randomise end-users into.
after page1 if (randomnumber (0,1) = 0) goto page5
In this example, end-users will be automatically randomised into two groups (0 and 1). End-users have a 50/50 chance of going to the ‘0’ group or the ‘1’ group. If they are in group 0 they will be sent to page5. All other users (i.e. those in group 1) will see page2 as this is the page in the next line of logic.
If the logic command included
randomnumber (0 , 3), instead of
randomnumber (0 , 1,), end-users will be automatically randomised into 4 groups (0, 1, 2, and 3). So end-users have a 25% chance of going into group 0, 1, 2, or 3.
IMPORTANT: Please read the sections on 'How to randomise users into two groups' or 'How to randomise users into more than two groups' before writing randomisation logic as there is further important information in these sections.