Millisecond Forums

ASSIGN GROUPNUMBER

https://forums.millisecond.com/Topic19618.aspx

By wsly - 8/30/2016

Hi!
I am currently administering an online experiment with an italian sample (batch script active below), counterbalanced by groupnumber. Currently the groupnumber is randmly assigned. I need to add to the active script the same experiment but in the english version - i.e. add other <batch> translated. Participants complete a questionnaire & then receive an email with IDnumber (groupnumber being assigned randomly). How can I manage to control the groupnumber assignment according to ITALIAN vs. ENGLISH???
Many thanks

<batch>
/subjects = (1 of 6)
/groupassignment = groupnumber
/file = "informedconsentITA.iqx"
/file = "GlobalLocalTask_ITA.iqx"
/file = "crucipuzzle2.iqx"
/file = "crucipuzzle1.iqx"
/file = "messaggiosegreto.iqx"
/file = "ShortRaven_ITA.iqx"
/file = "VISUAL WORKING MEMORY 2016 - 4 shapes_ITA.iqx"
/file = "MENTAL ROTATION EXP_ITA.iqx"
/file = "HackerFINAL_ITA.iqx"
/file = "GROUP EMBEDDED FIGURE TEST_2016_ITA.iqx"
/file = "debriefingITA.iqx"
</batch>

<batch>
/subjects = (2 of 6)
/groupassignment = groupnumber
/file = "informedconsentITA.iqx"
/file = "GlobalLocalTask_ITA.iqx"
/file = "HackerFINAL_ITA.iqx"
/file = "VISUAL WORKING MEMORY 2016 - 4 shapes_ITA.iqx"
/file = "crucipuzzle2.iqx"
/file = "crucipuzzle1.iqx"
/file = "messaggiosegreto.iqx"
/file = "ShortRaven_ITA.iqx"
/file = "GROUP EMBEDDED FIGURE TEST_2016_ITA.iqx"
/file = "MENTAL ROTATION EXP_ITA.iqx"
/file = "debriefingITA.iqx"
</batch>

<batch>
/subjects = (3 of 6)
/groupassignment = groupnumber
/file = "informedconsentITA.iqx"
/file = "VISUAL WORKING MEMORY 2016 - 4 shapes_ITA.iqx"
/file = "GROUP EMBEDDED FIGURE TEST_2016_ITA.iqx"
/file = "HackerFINAL_ITA.iqx"
/file = "GlobalLocalTask_ITA.iqx"
/file = "MENTAL ROTATION EXP_ITA.iqx"
/file = "crucipuzzle2.iqx"
/file = "crucipuzzle1.iqx"
/file = "messaggiosegreto.iqx"
/file = "ShortRaven_ITA.iqx"
/file = "debriefingITA.iqx"
</batch>

<batch>
/subjects = (4 of 6)
/groupassignment = groupnumber
/file = "informedconsentITA.iqx"
/file = "VISUAL WORKING MEMORY 2016 - 4 shapes_ITA.iqx"
/file = "GROUP EMBEDDED FIGURE TEST_2016_ITA.iqx"
/file = "GlobalLocalTask_ITA.iqx"
/file = "ShortRaven_ITA.iqx"
/file = "MENTAL ROTATION EXP_ITA.iqx"
/file = "HackerFINAL_ITA.iqx"
/file = "crucipuzzle2.iqx"
/file = "crucipuzzle1.iqx"
/file = "messaggiosegreto.iqx"
/file = "debriefingITA.iqx"
</batch>

<batch>
/subjects = (5 of 6)
/groupassignment = groupnumber
/file = "informedconsentITA.iqx"
/file = "ShortRaven_ITA.iqx"
/file = "GROUP EMBEDDED FIGURE TEST_2016_ITA.iqx"
/file = "crucipuzzle2.iqx"
/file = "crucipuzzle1.iqx"
/file = "messaggiosegreto.iqx"
/file = "HackerFINAL_ITA.iqx"
/file = "VISUAL WORKING MEMORY 2016 - 4 shapes_ITA.iqx"
/file = "GlobalLocalTask_ITA.iqx"
/file = "MENTAL ROTATION EXP_ITA.iqx"
/file = "debriefingITA.iqx"
</batch>

<batch>
/subjects = (6 of 6)
/groupassignment = groupnumber
/file = "informedconsentITA.iqx"
/file = "crucipuzzle2.iqx"
/file = "crucipuzzle1.iqx"
/file = "messaggiosegreto.iqx"
/file = "GROUP EMBEDDED FIGURE TEST_2016_ITA.iqx"
/file = "HackerFINAL_ITA.iqx"
/file = "ShortRaven_ITA.iqx"
/file = "MENTAL ROTATION EXP_ITA.iqx"
/file = "VISUAL WORKING MEMORY 2016 - 4 shapes_ITA.iqx"
/file = "GlobalLocalTask_ITA.iqx"
/file = "debriefingITA.iqx"
</batch>



By Dave - 8/30/2016

Add your English versions as additional conditions in the <batch> script (7 to 12). In your pre-experiment questionnaire, ask for your participants language (Italian or English). Have the questionnaire generate a random groupnumber -- drawn from 1 to 6 for the Italian speakers, drawn from 7 to 12 for the English speakers. Include that groupnumber in the link you email to your participants (with their ID) as a query parameter. Edit your web experiment's settings to use that query parameter as the groupnumber.

Cf. http://www.millisecond.com/support/docs/v5/html/howto/interopsurveys.htm