Reply To: Unable to randomize fillers and experimental items

PennController for IBEX Forums Support Unable to randomize fillers and experimental items Reply To: Unable to randomize fillers and experimental items

#8139
Jeremy
Keymaster

Hi,

The experiment runs the fillers as a separate list because your table has three different values in the LIST column: A, B and .

What I would do is store the function you pass to Template in a variable, create two different CSV tables for the experimental items (with a LIST column) and for the filler items (without a LIST column) and then use Template twice, once on each CSV table

experimental.csv:

ITEM,SENTENCE,COMPATIBILITY,SUBJECT,LIST,TYPE
101,Sentence 1,1,subject1,A,item
201,Sentence 2,1,subject1,B,item
102,Sentence 3,2,subject2,B,item
202,Sentence 4,2,subject2,A,item

fillers.csv:

ITEM,SENTENCE,COMPATIBILITY,SUBJECT,TYPE
501,Filler 1,.,.,filler
502,Filler 2,.,.,filler
503,Filler 3,.,.,filler

Example of a script:

function_for_template = row => newTrial( row.TYPE ,
  newText( row.SENTENCE ).print()
  ,
  newScale("answer", "True", "False").button().print().log().wait()
)
.log("item", row.ITEM)
.log("compatibility", row.COMPATIBILITY)
.log("subject", row.SUBJECT)
.log("list", (row.LIST===undefined?"filler":row.LIST))

Template("experimental.csv", function_for_template)
Template("fillers.csv", function_for_template)

Jeremy