up Inquisit Language Reference

groupassignment attribute

The groupassignment attribute determines how participants are assigned to between-subject conditions.

Member of

<batch> <expt>


/ groupassignment = assignment


assignment One of the following values:
Value Description
groupnumber Assignment is based on the group number.
random Assignment is random.
subjectnumber Assignment is based on the subject number.


Between-subject groups can be defined using the expt or batch elements. Participants can be assigned to between-subjects groups based on the numeric subject id entered when launching the script, or by random assignment. This attribute specifies which method to use. By default, the subject id is used.


The following randomly assigns participants into one of 2 treatment conditions:

			<expt conditionA>
/ subjects = (1 of 2)
/ groupassignment = random
/ blocks = [1=practice; 2=treatmentA; 3=test]

<expt conditionB>
/ subjects = (2 of 2)
/ groupassignment = random
/ blocks = [1=practice; 2=treatmentB; 3=test]

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.