+xHi,
I have an IAT script (attached) with two experimental versions: 1) compatible block first (smoke+positive) 2) incompatible block first (nonsmoke+positive). For those two defined experiments I chose: "/groupassignment = subjectnumber", which means that odd subject IDs get version (1), even subject IDs get version (2).
This works totally fine, but there is no variable to record the experimental version. Although there is a variable "group" in the output, this variable always says "1" (maybe because at the beginning of the IAT I just type in the subject ID and for group it always says "1").
So my question is whether I can somehow change the code to record the version a participant received. I have tried several things, but without success...
Thank you in advance!
Tanja
The "subject" column tells you the block order. As you noted yourself, an odd subject number means "compatible first", and even subject number means "incompatible first."
->
https://www.millisecond.com/forums/Topic13856.aspxYou can of course also add and log a custom variable that records this separately:
// 1 = compatible first
// 2 = incompatible first
<values>
/ version = 0
</values>...
<expt>
/ onexptbegin = [values.version = 1;]/subjects = (1 of 2)
/groupassignment = subjectnumber
/ blocks = [1=targetcompatiblepractice; 2=attributepractice; 3=compatibletest1; 4=compatibletestinstructions;
5=compatibletest2; 6=targetincompatiblepractice; 7=incompatibletest1; 8=incompatibletestinstructions;
9=incompatibletest2]
/onexptend = [values.completed = 1]
</expt>
<expt>
/ onexptbegin = [values.version = 2;]/subjects = (2 of 2)
/groupassignment = subjectnumber
/ blocks = [1=targetincompatiblepractice; 2=attributepractice; 3=incompatibletest1; 4=incompatibletestinstructions;
5=incompatibletest2; 6=targetcompatiblepractice; 7=compatibletest1; 8=compatibletestinstructions;
9=compatibletest2]
/onexptend = [values.completed = 1]
</expt>
...
<data>
/file = "IAT_Valenz_rawdata.iqdat"
/ columns = [date, time, group, subject, blockcode, blocknum, trialcode, trialnum, response, correct, latency,
stimulusnumber, stimulusitem, expressions.da, expressions.db, expressions.d, expressions.percentcorrect,
values.version]
/separatefiles = false
</data>
...
<summarydata >
/file = "IAT_Valenz_summary.iqdat"
/ columns = [script.startdate, script.starttime, script.subjectid, script.groupid, script.elapsedtime, values.completed,
expressions.da, expressions.db, expressions.d, expressions.percentcorrect,
values.version]
</summarydata>