Millisecond Forums

Attribute by SubjectID

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

By mbirk - 2/28/2013



Hi,


 


I’m working on an IAT project using milliseconds. Basically,
I modified the example file for “IAT with Item provided by Participant” from
the Inquisit Task Library (https://www.millisecond.com/download/library/v4/IAT/CustomItemIAT/CustomItemIAT.iqx).


 


I have three different sets of attributes, the rest of the
test stays constant. Attributes and compatible/incompatible order should be assigned
by subject.


 


Right now the expt looks like this:


---


<expt>


/subjects = (1 of 2)


/groupassignment = groupnumber


/ blocks = [1=getTargetItems; 2=targetcompatiblepractice;
3=attributepractice; 4=compatibletest1;


                                                                5=compatibletestinstructions;
6=compatibletest2; 7=targetincompatiblepractice; 8=incompatibletest1;


                                                                9=incompatibletestinstructions;
10=incompatibletest2]


---


 


I understand that I have to modify /subjects to (1 of 6) and
assign the different blocks, but if I do so, from my understanding, I also have
to duplicate the whole experimental setup by condition. But the only thing I
want to change is the used attributes depending on the /subject-id.


 


Is there a more elegant solution for that problem?


 


Thanks,


 


Max


By Dave - 2/28/2013

You can use the <variables> element to substitute elements between-subjects. Or you can use conditional logic via event attributes, <values> and <expressions> if that's more to your liking.

By mbirk - 2/28/2013

Thanks for the quick response!


I give that a try.


Thanks again,



max

By mbirk - 2/28/2013

Hi Dave,


that works fine for labels, but for attributesI get two errors for every block "Could not locate element 'XXX'." and "trial 2 is unassigned.".


Max




By mbirk - 2/28/2013

go it. needs the item. in front. Thanks for your work. I appreciate it.

By mbirk - 2/28/2013

I have to correct myself. The error is gone, but the output is empty.

By Dave - 2/28/2013

Without (a) the relevant code and (b) the exact error messages I cannot possibly tell you where the mistake may be.

By mbirk - 2/28/2013

I attached the file.There is no error, but the attributes are empty on the screen. If I use <variables> without item. I get an unassigned trial error.



The relevant part are:



<item attributeA>

</item>

<item attributeArelatedness>
/1 = "Included"
/2 = "Connected"
/3 = "Attached"
/4 = "Integrated"
/5 = "Involved"
/6 = "Belong"
/7 = "Wanted"
/8 = "Integrated"
</item>



and



<variables>
/group=(1 of 2) (attributeAlabel=attributeAlabelRelatedness, attributeBlabel=attributeBlabelRelatedness,  item.attributeA=item.attributeArelatedness, item.attributeB=item.attributeBrelatedness)
/group=(2 of 2) (attributeAlabel=attributeAlabelCompetence, attributeBlabel=attributeBlabelCompetence, item.attributeA=item.attributeAcompetence, item.attributeB=item.attributeBcompetence)
</variables>



By Dave - 2/28/2013

See the revisions in the attached file.

By mbirk - 2/28/2013

I see. I have to set directly the source of the items and not replacing one source with another. makes sense. thanks