manipulating the selection of different items for text stimuli presented throughout a blocked...


manipulating the selection of different items for text stimuli...

Author
Message
delgros1
delgros1
New Member
New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)

Group: Forum Members
Posts: 2, Visits: 5
Hello,

I am currently working on a script where participants rate text stimuli on a Likert scale and am fairly unfamiliar with the language used in Inquisit and coding in general.  In this experiment, there are 150 words that are presented across 10 experimental blocks (15 words per block).  75 of the 150 words are unique words which have been defined in the script as an item ("text2"); 25 other unique words will be presented 3x throughout the duration of the experiment and are written as 3 separate items containing the same content ("A11-A13"), making up the other 75/150 trials.  The goal is to have the 25 repeated words presented each 1 time during the first 3 blocks (A11), another time during the next 4 blocks (A12), and then one final time during the final 3 blocks (A13).  The other trials in each of these blocks should be randomly selected from the item containing the 75 unique words (text2), in such a way that words are not replaced, not repeated and the reset interval = 0 across blocks.  The issue I am running into is that I cannot get two separate items to be used in each text (only "text2" words are used), and I cannot get the repetitions in presentation of the 25 words to match the experimental design I am aiming for when the are included.  I did try to use a counter command to reset the interval at 0, but could not accurately write this command.

I have included the script below, which has been adapted from a previously used experiment:

<defaults>
/ font = ("Garamond", -19, 700, 0, 18)
/ txcolor = (0, 0, 0)
/ validkeys = ("a" "5" " " "*" "m" "+")
</defaults>

<data>
/columns =[date time subject blocknum trialnum trialcode response
latency stimulusnumber stimulusnumber stimulus stimulus stimulus]
/labels=true
/format=tab
</data>

<expt>
/ preinstructions = (expt_intro, expt_intro2)
/ blocks = [1=list1; 2=list2; 3=list3; 4=list4; 5=list5; 6=list6; 7=list7;
8=list8; 9=list9; 10=list10]
/ postinstructions = (expt_end)
</expt>

<block list1>
/ trials = [1 = nextlist; 2-16 = words1]
</block>

<block list2>
/ trials = [1 = nextlist; 2-16 = words1]
</block>

<block list3>
/ trials = [1 = nextlist; 2-16 = words1]
</block>

<block list4>
/ trials = [1 = nextlist; 2-16 = words2]
</block>

<block list5>
/ trials = [1 = nextlist; 2-16 = words2]
</block>

<block list6>
/ trials = [1 = nextlist; 2-16 = words2]
</block>

<block list7>
/ trials = [1 = nextlist; 2-16 = words2]
</block>

<block list8>
/ trials = [1 = nextlist; 2-16 = words3]
</block>

<block list9>
/ trials = [1 = nextlist; 2-16 = words3]
</block>

<block list10>
/ trials = [1 = nextlist; 2-16 = words3]
</block>

<text word1>
/ numitems = 25 (item.A11)
/ numitems = 20 (item.text2)
/ items = A11
/ items = text2
/ select = noreplacenorepeat
/ resetinterval = 0
/ font = ("Garamond", -64, 700, 0, 18)
</text>

<text word2>
/ numitems = 25 (item.A12)
/ numitems = 20 (item.text2)
/ items = A12
/ items = text2
/ select = noreplacenorepeat
/ resetinterval = 0
/ font = ("Garamond", -64, 700, 0, 18)
</text>

<text word3>
/ numitems = 25 (item.A13)
/ numitems = 20 (item.text2)
/ items = A13
/ items = text2
/ select = noreplacenorepeat
/ resetinterval = 0
/ font = ("Garamond", -64, 700, 0, 18)
</text>

<text next>
/ numitems = 1
/ items = nextitem
/ select = serial
/ font = ("Garamond", -35, 700, 0, 18)
</text>

<item nextitem>
/ 1 = "Press space bar when you are ready to begin again"
</item>

<item A11>
/ 1 = "boy"
/ 2 = "arm"
/ 3 = "tree"
/ 4 = "glass"
/ 5 = "stage"
/ 6 = "fish"
/ 7 = "coach"
/ 8 = "hole"
/ 9 = "flight"
/ 10 = "pair"
/ 11 = "belle"
/ 12 = "earth"
/ 13 = "soil"
/ 14 = "cloud"
/ 15 = "milk"
/ 16 = "phase"
/ 17 = "flag"
/ 18 = "string"
/ 19 = "tribe"
/ 20 = "glove"
/ 21 = "norm"
/ 22 = "wrist"
/ 23 = "hay"
/ 24 = "nest"
/ 25 = "breeze" 
</item> 

<item A12>
/ 1 = "boy"
/ 2 = "arm"
/ 3 = "tree"
/ 4 = "glass"
/ 5 = "stage"
/ 6 = "fish"
/ 7 = "coach"
/ 8 = "hole"
/ 9 = "flight"
/ 10 = "pair"
/ 11 = "belle"
/ 12 = "earth"
/ 13 = "soil"
/ 14 = "cloud"
/ 15 = "milk"
/ 16 = "phase"
/ 17 = "flag"
/ 18 = "string"
/ 19 = "tribe"
/ 20 = "glove"
/ 21 = "norm"
/ 22 = "wrist"
/ 23 = "hay"
/ 24 = "nest"
/ 25 = "breeze" 
</item> 

<item A13>
/ 1 = "boy"
/ 2 = "arm"
/ 3 = "tree"
/ 4 = "glass"
/ 5 = "stage"
/ 6 = "fish"
/ 7 = "coach"
/ 8 = "hole"
/ 9 = "flight"
/ 10 = "pair"
/ 11 = "belle"
/ 12 = "earth"
/ 13 = "soil"
/ 14 = "cloud"
/ 15 = "milk"
/ 16 = "phase"
/ 17 = "flag"
/ 18 = "string"
/ 19 = "tribe"
/ 20 = "glove"
/ 21 = "norm"
/ 22 = "wrist"
/ 23 = "hay"
/ 24 = "nest"
/ 25 = "breeze" 
</item> 

<item text2>
/ 1 = "fell"
/ 2 = "dough"
/ 3 = "town"
/ 4 = "class"
/ 5 = "son"
/ 6 = "type"
/ 7 = "steam"
/ 8 = "whale"
/ 9 = "goal"
/ 10 = "site"
/ 11 = "wall"
/ 12 = "store"
/ 13 = "sum"
/ 14 = "chin"
/ 15 = "barn"
/ 16 = "base"
/ 17 = "chance"
/ 18 = "board"
/ 19 = "skin"
/ 20 = "nail"
/ 21 = "skirt"
/ 22 = "brain"
/ 23 = "page"
/ 24 = "staff"
/ 25 = "band"
/ 26 = "brick"
/ 27 = "log"
/ 28 = "key"
/ 29 = "leg"
/ 30 = "firm"
/ 31 = "fat"
/ 32 = "mall"
/ 33 = "pitch"
/ 34 = "male"
/ 35 = "style"
/ 36 = "bag"
/ 37 = "snow"
/ 38 = "fur"
/ 39 = "lawn"
/ 40 = "length"
/ 41 = "task"
/ 42 = "turn"
/ 43 = "grass"
/ 44 = "gear"
/ 45 = "port"
/ 46 = "sand"
/ 47 = "stone"
/ 48 = "farm"
/ 49 = "belt"
/ 50 = "wire"
/ 51 = "moon"
/ 52 = "bell"
/ 53 = "title"
/ 54 = "bone"
/ 55 = "net"
/ 56 = "tea"
/ 57 = "iron"
/ 58 = "cow"
/ 59 = "front"
/ 60 = "pool"
/ 61 = "rail"
/ 62 = "dish"
/ 63 = "hill"
/ 64 = "cheese"
/ 65 = "pen"
/ 66 = "cover"
/ 67 = "map"
/ 68 = "clerk"
/ 69 = "chain"
/ 70 = "tank"
/ 71 = "drum"
/ 72 = "root"
/ 73 = "shirt"
/ 74 = "jar"
/ 75 = "trash"
</item>

<trial nextlist>
/ stimulustimes = [0=next]
/ response = timeout(5000)
/ validresponse = (" ", 28)
</trial>

<likert words1>
/ stimulustimes = [0= word1]
/ numpoints = 7
/ anchors = [1="x"; 7="y"]
/ anchorwidth = 140px
/ fontstyle = ("Georgia", -19, false, false, false, false, 5, 0)
/ position = (50, 70)
/ mouse = true
/ response = timeout(5000000)
/ posttrialpause = 750
</likert>

<likert words2>
/ stimulustimes = [0= word2]
/  numpoints = 7
/ anchors = [1="x"; 7="y"]
/ anchorwidth = 140px
/ fontstyle = ("Georgia", -19, false, false, false, false, 5, 0)
/ position = (50, 70)
/ mouse = true
/ response = timeout(5000000)
/ posttrialpause = 750
</likert>

<likert words3>
/ stimulustimes = [0= word3]
/  numpoints = 7
/ anchors = [1="x"; 7="y"]
/ anchorwidth = 140px
/ fontstyle = ("Georgia", -19, false, false, false, false, 5, 0)
/ position = (50, 70)
/ mouse = true
/ response = timeout(5000000)
/ posttrialpause = 750
</likert>

<instruct> 
/ nextkey = (" ")
/ nextlabel = ("Space-Bar >>")
/ prevkey = ("a")
/ prevlabel = ("<< B")
/ font = ("Garamond", -24, 700, 0, 18)
</instruct>

<page expt_intro>
Instructions.
</page>

<page expt_intro2>
More instructions.
</page>

<page expt_end>
This concludes this experimental session.  Please see the experimenter for further instructions
</page>

Dave
Dave
Supreme Being
Supreme Being (528K reputation)Supreme Being (528K reputation)Supreme Being (528K reputation)Supreme Being (528K reputation)Supreme Being (528K reputation)Supreme Being (528K reputation)Supreme Being (528K reputation)Supreme Being (528K reputation)Supreme Being (528K reputation)

Group: Administrators
Posts: 9.2K, Visits: 40K
delgros1 - Wednesday, September 12, 2018
Hello,

I am currently working on a script where participants rate text stimuli on a Likert scale and am fairly unfamiliar with the language used in Inquisit and coding in general.  In this experiment, there are 150 words that are presented across 10 experimental blocks (15 words per block).  75 of the 150 words are unique words which have been defined in the script as an item ("text2"); 25 other unique words will be presented 3x throughout the duration of the experiment and are written as 3 separate items containing the same content ("A11-A13"), making up the other 75/150 trials.  The goal is to have the 25 repeated words presented each 1 time during the first 3 blocks (A11), another time during the next 4 blocks (A12), and then one final time during the final 3 blocks (A13).  The other trials in each of these blocks should be randomly selected from the item containing the 75 unique words (text2), in such a way that words are not replaced, not repeated and the reset interval = 0 across blocks.  The issue I am running into is that I cannot get two separate items to be used in each text (only "text2" words are used), and I cannot get the repetitions in presentation of the 25 words to match the experimental design I am aiming for when the are included.  I did try to use a counter command to reset the interval at 0, but could not accurately write this command.

I have included the script below, which has been adapted from a previously used experiment:

<defaults>
/ font = ("Garamond", -19, 700, 0, 18)
/ txcolor = (0, 0, 0)
/ validkeys = ("a" "5" " " "*" "m" "+")
</defaults>

<data>
/columns =[date time subject blocknum trialnum trialcode response
latency stimulusnumber stimulusnumber stimulus stimulus stimulus]
/labels=true
/format=tab
</data>

<expt>
/ preinstructions = (expt_intro, expt_intro2)
/ blocks = [1=list1; 2=list2; 3=list3; 4=list4; 5=list5; 6=list6; 7=list7;
8=list8; 9=list9; 10=list10]
/ postinstructions = (expt_end)
</expt>

<block list1>
/ trials = [1 = nextlist; 2-16 = words1]
</block>

<block list2>
/ trials = [1 = nextlist; 2-16 = words1]
</block>

<block list3>
/ trials = [1 = nextlist; 2-16 = words1]
</block>

<block list4>
/ trials = [1 = nextlist; 2-16 = words2]
</block>

<block list5>
/ trials = [1 = nextlist; 2-16 = words2]
</block>

<block list6>
/ trials = [1 = nextlist; 2-16 = words2]
</block>

<block list7>
/ trials = [1 = nextlist; 2-16 = words2]
</block>

<block list8>
/ trials = [1 = nextlist; 2-16 = words3]
</block>

<block list9>
/ trials = [1 = nextlist; 2-16 = words3]
</block>

<block list10>
/ trials = [1 = nextlist; 2-16 = words3]
</block>

<text word1>
/ numitems = 25 (item.A11)
/ numitems = 20 (item.text2)
/ items = A11
/ items = text2
/ select = noreplacenorepeat
/ resetinterval = 0
/ font = ("Garamond", -64, 700, 0, 18)
</text>

<text word2>
/ numitems = 25 (item.A12)
/ numitems = 20 (item.text2)
/ items = A12
/ items = text2
/ select = noreplacenorepeat
/ resetinterval = 0
/ font = ("Garamond", -64, 700, 0, 18)
</text>

<text word3>
/ numitems = 25 (item.A13)
/ numitems = 20 (item.text2)
/ items = A13
/ items = text2
/ select = noreplacenorepeat
/ resetinterval = 0
/ font = ("Garamond", -64, 700, 0, 18)
</text>

<text next>
/ numitems = 1
/ items = nextitem
/ select = serial
/ font = ("Garamond", -35, 700, 0, 18)
</text>

<item nextitem>
/ 1 = "Press space bar when you are ready to begin again"
</item>

<item A11>
/ 1 = "boy"
/ 2 = "arm"
/ 3 = "tree"
/ 4 = "glass"
/ 5 = "stage"
/ 6 = "fish"
/ 7 = "coach"
/ 8 = "hole"
/ 9 = "flight"
/ 10 = "pair"
/ 11 = "belle"
/ 12 = "earth"
/ 13 = "soil"
/ 14 = "cloud"
/ 15 = "milk"
/ 16 = "phase"
/ 17 = "flag"
/ 18 = "string"
/ 19 = "tribe"
/ 20 = "glove"
/ 21 = "norm"
/ 22 = "wrist"
/ 23 = "hay"
/ 24 = "nest"
/ 25 = "breeze" 
</item> 

<item A12>
/ 1 = "boy"
/ 2 = "arm"
/ 3 = "tree"
/ 4 = "glass"
/ 5 = "stage"
/ 6 = "fish"
/ 7 = "coach"
/ 8 = "hole"
/ 9 = "flight"
/ 10 = "pair"
/ 11 = "belle"
/ 12 = "earth"
/ 13 = "soil"
/ 14 = "cloud"
/ 15 = "milk"
/ 16 = "phase"
/ 17 = "flag"
/ 18 = "string"
/ 19 = "tribe"
/ 20 = "glove"
/ 21 = "norm"
/ 22 = "wrist"
/ 23 = "hay"
/ 24 = "nest"
/ 25 = "breeze" 
</item> 

<item A13>
/ 1 = "boy"
/ 2 = "arm"
/ 3 = "tree"
/ 4 = "glass"
/ 5 = "stage"
/ 6 = "fish"
/ 7 = "coach"
/ 8 = "hole"
/ 9 = "flight"
/ 10 = "pair"
/ 11 = "belle"
/ 12 = "earth"
/ 13 = "soil"
/ 14 = "cloud"
/ 15 = "milk"
/ 16 = "phase"
/ 17 = "flag"
/ 18 = "string"
/ 19 = "tribe"
/ 20 = "glove"
/ 21 = "norm"
/ 22 = "wrist"
/ 23 = "hay"
/ 24 = "nest"
/ 25 = "breeze" 
</item> 

<item text2>
/ 1 = "fell"
/ 2 = "dough"
/ 3 = "town"
/ 4 = "class"
/ 5 = "son"
/ 6 = "type"
/ 7 = "steam"
/ 8 = "whale"
/ 9 = "goal"
/ 10 = "site"
/ 11 = "wall"
/ 12 = "store"
/ 13 = "sum"
/ 14 = "chin"
/ 15 = "barn"
/ 16 = "base"
/ 17 = "chance"
/ 18 = "board"
/ 19 = "skin"
/ 20 = "nail"
/ 21 = "skirt"
/ 22 = "brain"
/ 23 = "page"
/ 24 = "staff"
/ 25 = "band"
/ 26 = "brick"
/ 27 = "log"
/ 28 = "key"
/ 29 = "leg"
/ 30 = "firm"
/ 31 = "fat"
/ 32 = "mall"
/ 33 = "pitch"
/ 34 = "male"
/ 35 = "style"
/ 36 = "bag"
/ 37 = "snow"
/ 38 = "fur"
/ 39 = "lawn"
/ 40 = "length"
/ 41 = "task"
/ 42 = "turn"
/ 43 = "grass"
/ 44 = "gear"
/ 45 = "port"
/ 46 = "sand"
/ 47 = "stone"
/ 48 = "farm"
/ 49 = "belt"
/ 50 = "wire"
/ 51 = "moon"
/ 52 = "bell"
/ 53 = "title"
/ 54 = "bone"
/ 55 = "net"
/ 56 = "tea"
/ 57 = "iron"
/ 58 = "cow"
/ 59 = "front"
/ 60 = "pool"
/ 61 = "rail"
/ 62 = "dish"
/ 63 = "hill"
/ 64 = "cheese"
/ 65 = "pen"
/ 66 = "cover"
/ 67 = "map"
/ 68 = "clerk"
/ 69 = "chain"
/ 70 = "tank"
/ 71 = "drum"
/ 72 = "root"
/ 73 = "shirt"
/ 74 = "jar"
/ 75 = "trash"
</item>

<trial nextlist>
/ stimulustimes = [0=next]
/ response = timeout(5000)
/ validresponse = (" ", 28)
</trial>

<likert words1>
/ stimulustimes = [0= word1]
/ numpoints = 7
/ anchors = [1="x"; 7="y"]
/ anchorwidth = 140px
/ fontstyle = ("Georgia", -19, false, false, false, false, 5, 0)
/ position = (50, 70)
/ mouse = true
/ response = timeout(5000000)
/ posttrialpause = 750
</likert>

<likert words2>
/ stimulustimes = [0= word2]
/  numpoints = 7
/ anchors = [1="x"; 7="y"]
/ anchorwidth = 140px
/ fontstyle = ("Georgia", -19, false, false, false, false, 5, 0)
/ position = (50, 70)
/ mouse = true
/ response = timeout(5000000)
/ posttrialpause = 750
</likert>

<likert words3>
/ stimulustimes = [0= word3]
/  numpoints = 7
/ anchors = [1="x"; 7="y"]
/ anchorwidth = 140px
/ fontstyle = ("Georgia", -19, false, false, false, false, 5, 0)
/ position = (50, 70)
/ mouse = true
/ response = timeout(5000000)
/ posttrialpause = 750
</likert>

<instruct> 
/ nextkey = (" ")
/ nextlabel = ("Space-Bar >>")
/ prevkey = ("a")
/ prevlabel = ("<< B")
/ font = ("Garamond", -24, 700, 0, 18)
</instruct>

<page expt_intro>
Instructions.
</page>

<page expt_intro2>
More instructions.
</page>

<page expt_end>
This concludes this experimental session.  Please see the experimenter for further instructions
</page>

<text word1>
/ numitems = 25 (item.A11)
/ numitems = 20 (item.text2)

/ items = A11
/ items = text2

/ select = noreplacenorepeat
/ resetinterval = 0
/ font = ("Garamond", -64, 700, 0, 18)
</text>

This does not make sense in Inquisit syntax terms and won't work. A <text> element cannot have multiple item elements it pulls from, there may only be one.

What you need to do is have separate <trial> elements (or here: <likert>s, which are a special kind of <trial>Wink for the different word lists, and then sample from those trials as needed via your <block> elements' /trials attributes. You can use <list>s for trial selection if you need something more complex.

Let's take the 1st three blocks as an example. You have 45 trials total in these 3 blocks (15 per block), and you want 25 of those trials to come from A11, and 20 from text2 (the unique words). Then you do:

<defaults>
/ font = ("Garamond", -19, 700, 0, 18)
/ txcolor = (0, 0, 0)
/ validkeys = ("a" "5" " " "*" "m" "+")
</defaults>

<data>
/columns =[date time subject blocknum trialnum trialcode response
latency stimulusnumber stimulusnumber stimulus stimulus stimulus]
/labels=true
/format=tab
</data>

<expt>
/ blocks = [1=list1; 2=list2; 3=list3]
</expt>

<block list1>
/ trials = [1 = nextlist; 2-16 = list.triallistA11]
</block>

<block list2>
/ trials = [1 = nextlist; 2-16 = list.triallistA11]
</block>

<block list3>
/ trials = [1 = nextlist; 2-16 = list.triallistA11]
</block>

<list triallistA11>
/ items = (likert.A11trial,likert.text2trial)
/ poolsize = 45
/ itemprobabilities = [.56; .44]
</list>


<text A11>
/ items = A11items
/ select = noreplace
/ resetinterval = 0
/ font = ("Garamond", -64, 700, 0, 18)
</text>

<text text2>
/ items = text2items
/ select = noreplace
/ resetinterval = 0
/ font = ("Garamond", -64, 700, 0, 18)
</text>

<text next>
/ numitems = 1
/ items = nextitem
/ select = serial
/ font = ("Garamond", -35, 700, 0, 18)
</text>

<item nextitem>
/ 1 = "Press space bar when you are ready to begin again"
</item>

<item A11items>
/ 1 = "boy"
/ 2 = "arm"
/ 3 = "tree"
/ 4 = "glass"
/ 5 = "stage"
/ 6 = "fish"
/ 7 = "coach"
/ 8 = "hole"
/ 9 = "flight"
/ 10 = "pair"
/ 11 = "belle"
/ 12 = "earth"
/ 13 = "soil"
/ 14 = "cloud"
/ 15 = "milk"
/ 16 = "phase"
/ 17 = "flag"
/ 18 = "string"
/ 19 = "tribe"
/ 20 = "glove"
/ 21 = "norm"
/ 22 = "wrist"
/ 23 = "hay"
/ 24 = "nest"
/ 25 = "breeze"
</item>

<item text2items>
/ 1 = "fell"
/ 2 = "dough"
/ 3 = "town"
/ 4 = "class"
/ 5 = "son"
/ 6 = "type"
/ 7 = "steam"
/ 8 = "whale"
/ 9 = "goal"
/ 10 = "site"
/ 11 = "wall"
/ 12 = "store"
/ 13 = "sum"
/ 14 = "chin"
/ 15 = "barn"
/ 16 = "base"
/ 17 = "chance"
/ 18 = "board"
/ 19 = "skin"
/ 20 = "nail"
/ 21 = "skirt"
/ 22 = "brain"
/ 23 = "page"
/ 24 = "staff"
/ 25 = "band"
/ 26 = "brick"
/ 27 = "log"
/ 28 = "key"
/ 29 = "leg"
/ 30 = "firm"
/ 31 = "fat"
/ 32 = "mall"
/ 33 = "pitch"
/ 34 = "male"
/ 35 = "style"
/ 36 = "bag"
/ 37 = "snow"
/ 38 = "fur"
/ 39 = "lawn"
/ 40 = "length"
/ 41 = "task"
/ 42 = "turn"
/ 43 = "grass"
/ 44 = "gear"
/ 45 = "port"
/ 46 = "sand"
/ 47 = "stone"
/ 48 = "farm"
/ 49 = "belt"
/ 50 = "wire"
/ 51 = "moon"
/ 52 = "bell"
/ 53 = "title"
/ 54 = "bone"
/ 55 = "net"
/ 56 = "tea"
/ 57 = "iron"
/ 58 = "cow"
/ 59 = "front"
/ 60 = "pool"
/ 61 = "rail"
/ 62 = "dish"
/ 63 = "hill"
/ 64 = "cheese"
/ 65 = "pen"
/ 66 = "cover"
/ 67 = "map"
/ 68 = "clerk"
/ 69 = "chain"
/ 70 = "tank"
/ 71 = "drum"
/ 72 = "root"
/ 73 = "shirt"
/ 74 = "jar"
/ 75 = "trash"
</item>

<trial nextlist>
/ stimulustimes = [0=next]
/ response = timeout(5000)
/ validresponse = (" ", 28)
</trial>

<likert A11trial>
/ stimulustimes = [0= A11]
/ numpoints = 7
/ anchors = [1="x"; 7="y"]
/ anchorwidth = 140px
/ fontstyle = ("Georgia", -19, false, false, false, false, 5, 0)
/ position = (50, 70)
/ mouse = true
/ response = timeout(5000000)
/ posttrialpause = 750
</likert>

<likert text2trial>
/ stimulustimes = [0= text2]
/  numpoints = 7
/ anchors = [1="x"; 7="y"]
/ anchorwidth = 140px
/ fontstyle = ("Georgia", -19, false, false, false, false, 5, 0)
/ position = (50, 70)
/ mouse = true
/ response = timeout(5000000)
/ posttrialpause = 750
</likert>

<instruct>
/ nextkey = (" ")
/ nextlabel = ("Space-Bar >>")
/ prevkey = ("a")
/ prevlabel = ("<< B")
/ font = ("Garamond", -24, 700, 0, 18)
</instruct>

<page expt_intro>
Instructions.
</page>

<page expt_intro2>
More instructions.
</page>

<page expt_end>
This concludes this experimental session.  Please see the experimenter for further instructions
</page>

You do the same thing for the other chunks of blocks.



delgros1
delgros1
New Member
New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)

Group: Forum Members
Posts: 2, Visits: 5
Dave - Wednesday, September 12, 2018
delgros1 - Wednesday, September 12, 2018
Hello,

I am currently working on a script where participants rate text stimuli on a Likert scale and am fairly unfamiliar with the language used in Inquisit and coding in general.  In this experiment, there are 150 words that are presented across 10 experimental blocks (15 words per block).  75 of the 150 words are unique words which have been defined in the script as an item ("text2"); 25 other unique words will be presented 3x throughout the duration of the experiment and are written as 3 separate items containing the same content ("A11-A13"), making up the other 75/150 trials.  The goal is to have the 25 repeated words presented each 1 time during the first 3 blocks (A11), another time during the next 4 blocks (A12), and then one final time during the final 3 blocks (A13).  The other trials in each of these blocks should be randomly selected from the item containing the 75 unique words (text2), in such a way that words are not replaced, not repeated and the reset interval = 0 across blocks.  The issue I am running into is that I cannot get two separate items to be used in each text (only "text2" words are used), and I cannot get the repetitions in presentation of the 25 words to match the experimental design I am aiming for when the are included.  I did try to use a counter command to reset the interval at 0, but could not accurately write this command.

I have included the script below, which has been adapted from a previously used experiment:

<defaults>
/ font = ("Garamond", -19, 700, 0, 18)
/ txcolor = (0, 0, 0)
/ validkeys = ("a" "5" " " "*" "m" "+")
</defaults>

<data>
/columns =[date time subject blocknum trialnum trialcode response
latency stimulusnumber stimulusnumber stimulus stimulus stimulus]
/labels=true
/format=tab
</data>

<expt>
/ preinstructions = (expt_intro, expt_intro2)
/ blocks = [1=list1; 2=list2; 3=list3; 4=list4; 5=list5; 6=list6; 7=list7;
8=list8; 9=list9; 10=list10]
/ postinstructions = (expt_end)
</expt>

<block list1>
/ trials = [1 = nextlist; 2-16 = words1]
</block>

<block list2>
/ trials = [1 = nextlist; 2-16 = words1]
</block>

<block list3>
/ trials = [1 = nextlist; 2-16 = words1]
</block>

<block list4>
/ trials = [1 = nextlist; 2-16 = words2]
</block>

<block list5>
/ trials = [1 = nextlist; 2-16 = words2]
</block>

<block list6>
/ trials = [1 = nextlist; 2-16 = words2]
</block>

<block list7>
/ trials = [1 = nextlist; 2-16 = words2]
</block>

<block list8>
/ trials = [1 = nextlist; 2-16 = words3]
</block>

<block list9>
/ trials = [1 = nextlist; 2-16 = words3]
</block>

<block list10>
/ trials = [1 = nextlist; 2-16 = words3]
</block>

<text word1>
/ numitems = 25 (item.A11)
/ numitems = 20 (item.text2)
/ items = A11
/ items = text2
/ select = noreplacenorepeat
/ resetinterval = 0
/ font = ("Garamond", -64, 700, 0, 18)
</text>

<text word2>
/ numitems = 25 (item.A12)
/ numitems = 20 (item.text2)
/ items = A12
/ items = text2
/ select = noreplacenorepeat
/ resetinterval = 0
/ font = ("Garamond", -64, 700, 0, 18)
</text>

<text word3>
/ numitems = 25 (item.A13)
/ numitems = 20 (item.text2)
/ items = A13
/ items = text2
/ select = noreplacenorepeat
/ resetinterval = 0
/ font = ("Garamond", -64, 700, 0, 18)
</text>

<text next>
/ numitems = 1
/ items = nextitem
/ select = serial
/ font = ("Garamond", -35, 700, 0, 18)
</text>

<item nextitem>
/ 1 = "Press space bar when you are ready to begin again"
</item>

<item A11>
/ 1 = "boy"
/ 2 = "arm"
/ 3 = "tree"
/ 4 = "glass"
/ 5 = "stage"
/ 6 = "fish"
/ 7 = "coach"
/ 8 = "hole"
/ 9 = "flight"
/ 10 = "pair"
/ 11 = "belle"
/ 12 = "earth"
/ 13 = "soil"
/ 14 = "cloud"
/ 15 = "milk"
/ 16 = "phase"
/ 17 = "flag"
/ 18 = "string"
/ 19 = "tribe"
/ 20 = "glove"
/ 21 = "norm"
/ 22 = "wrist"
/ 23 = "hay"
/ 24 = "nest"
/ 25 = "breeze" 
</item> 

<item A12>
/ 1 = "boy"
/ 2 = "arm"
/ 3 = "tree"
/ 4 = "glass"
/ 5 = "stage"
/ 6 = "fish"
/ 7 = "coach"
/ 8 = "hole"
/ 9 = "flight"
/ 10 = "pair"
/ 11 = "belle"
/ 12 = "earth"
/ 13 = "soil"
/ 14 = "cloud"
/ 15 = "milk"
/ 16 = "phase"
/ 17 = "flag"
/ 18 = "string"
/ 19 = "tribe"
/ 20 = "glove"
/ 21 = "norm"
/ 22 = "wrist"
/ 23 = "hay"
/ 24 = "nest"
/ 25 = "breeze" 
</item> 

<item A13>
/ 1 = "boy"
/ 2 = "arm"
/ 3 = "tree"
/ 4 = "glass"
/ 5 = "stage"
/ 6 = "fish"
/ 7 = "coach"
/ 8 = "hole"
/ 9 = "flight"
/ 10 = "pair"
/ 11 = "belle"
/ 12 = "earth"
/ 13 = "soil"
/ 14 = "cloud"
/ 15 = "milk"
/ 16 = "phase"
/ 17 = "flag"
/ 18 = "string"
/ 19 = "tribe"
/ 20 = "glove"
/ 21 = "norm"
/ 22 = "wrist"
/ 23 = "hay"
/ 24 = "nest"
/ 25 = "breeze" 
</item> 

<item text2>
/ 1 = "fell"
/ 2 = "dough"
/ 3 = "town"
/ 4 = "class"
/ 5 = "son"
/ 6 = "type"
/ 7 = "steam"
/ 8 = "whale"
/ 9 = "goal"
/ 10 = "site"
/ 11 = "wall"
/ 12 = "store"
/ 13 = "sum"
/ 14 = "chin"
/ 15 = "barn"
/ 16 = "base"
/ 17 = "chance"
/ 18 = "board"
/ 19 = "skin"
/ 20 = "nail"
/ 21 = "skirt"
/ 22 = "brain"
/ 23 = "page"
/ 24 = "staff"
/ 25 = "band"
/ 26 = "brick"
/ 27 = "log"
/ 28 = "key"
/ 29 = "leg"
/ 30 = "firm"
/ 31 = "fat"
/ 32 = "mall"
/ 33 = "pitch"
/ 34 = "male"
/ 35 = "style"
/ 36 = "bag"
/ 37 = "snow"
/ 38 = "fur"
/ 39 = "lawn"
/ 40 = "length"
/ 41 = "task"
/ 42 = "turn"
/ 43 = "grass"
/ 44 = "gear"
/ 45 = "port"
/ 46 = "sand"
/ 47 = "stone"
/ 48 = "farm"
/ 49 = "belt"
/ 50 = "wire"
/ 51 = "moon"
/ 52 = "bell"
/ 53 = "title"
/ 54 = "bone"
/ 55 = "net"
/ 56 = "tea"
/ 57 = "iron"
/ 58 = "cow"
/ 59 = "front"
/ 60 = "pool"
/ 61 = "rail"
/ 62 = "dish"
/ 63 = "hill"
/ 64 = "cheese"
/ 65 = "pen"
/ 66 = "cover"
/ 67 = "map"
/ 68 = "clerk"
/ 69 = "chain"
/ 70 = "tank"
/ 71 = "drum"
/ 72 = "root"
/ 73 = "shirt"
/ 74 = "jar"
/ 75 = "trash"
</item>

<trial nextlist>
/ stimulustimes = [0=next]
/ response = timeout(5000)
/ validresponse = (" ", 28)
</trial>

<likert words1>
/ stimulustimes = [0= word1]
/ numpoints = 7
/ anchors = [1="x"; 7="y"]
/ anchorwidth = 140px
/ fontstyle = ("Georgia", -19, false, false, false, false, 5, 0)
/ position = (50, 70)
/ mouse = true
/ response = timeout(5000000)
/ posttrialpause = 750
</likert>

<likert words2>
/ stimulustimes = [0= word2]
/  numpoints = 7
/ anchors = [1="x"; 7="y"]
/ anchorwidth = 140px
/ fontstyle = ("Georgia", -19, false, false, false, false, 5, 0)
/ position = (50, 70)
/ mouse = true
/ response = timeout(5000000)
/ posttrialpause = 750
</likert>

<likert words3>
/ stimulustimes = [0= word3]
/  numpoints = 7
/ anchors = [1="x"; 7="y"]
/ anchorwidth = 140px
/ fontstyle = ("Georgia", -19, false, false, false, false, 5, 0)
/ position = (50, 70)
/ mouse = true
/ response = timeout(5000000)
/ posttrialpause = 750
</likert>

<instruct> 
/ nextkey = (" ")
/ nextlabel = ("Space-Bar >>")
/ prevkey = ("a")
/ prevlabel = ("<< B")
/ font = ("Garamond", -24, 700, 0, 18)
</instruct>

<page expt_intro>
Instructions.
</page>

<page expt_intro2>
More instructions.
</page>

<page expt_end>
This concludes this experimental session.  Please see the experimenter for further instructions
</page>

<text word1>
/ numitems = 25 (item.A11)
/ numitems = 20 (item.text2)

/ items = A11
/ items = text2

/ select = noreplacenorepeat
/ resetinterval = 0
/ font = ("Garamond", -64, 700, 0, 18)
</text>

This does not make sense in Inquisit syntax terms and won't work. A <text> element cannot have multiple item elements it pulls from, there may only be one.

What you need to do is have separate <trial> elements (or here: <likert>s, which are a special kind of <trial>Wink for the different word lists, and then sample from those trials as needed via your <block> elements' /trials attributes. You can use <list>s for trial selection if you need something more complex.

Let's take the 1st three blocks as an example. You have 45 trials total in these 3 blocks (15 per block), and you want 25 of those trials to come from A11, and 20 from text2 (the unique words). Then you do:

<defaults>
/ font = ("Garamond", -19, 700, 0, 18)
/ txcolor = (0, 0, 0)
/ validkeys = ("a" "5" " " "*" "m" "+")
</defaults>

<data>
/columns =[date time subject blocknum trialnum trialcode response
latency stimulusnumber stimulusnumber stimulus stimulus stimulus]
/labels=true
/format=tab
</data>

<expt>
/ blocks = [1=list1; 2=list2; 3=list3]
</expt>

<block list1>
/ trials = [1 = nextlist; 2-16 = list.triallistA11]
</block>

<block list2>
/ trials = [1 = nextlist; 2-16 = list.triallistA11]
</block>

<block list3>
/ trials = [1 = nextlist; 2-16 = list.triallistA11]
</block>

<list triallistA11>
/ items = (likert.A11trial,likert.text2trial)
/ poolsize = 45
/ itemprobabilities = [.56; .44]
</list>


<text A11>
/ items = A11items
/ select = noreplace
/ resetinterval = 0
/ font = ("Garamond", -64, 700, 0, 18)
</text>

<text text2>
/ items = text2items
/ select = noreplace
/ resetinterval = 0
/ font = ("Garamond", -64, 700, 0, 18)
</text>

<text next>
/ numitems = 1
/ items = nextitem
/ select = serial
/ font = ("Garamond", -35, 700, 0, 18)
</text>

<item nextitem>
/ 1 = "Press space bar when you are ready to begin again"
</item>

<item A11items>
/ 1 = "boy"
/ 2 = "arm"
/ 3 = "tree"
/ 4 = "glass"
/ 5 = "stage"
/ 6 = "fish"
/ 7 = "coach"
/ 8 = "hole"
/ 9 = "flight"
/ 10 = "pair"
/ 11 = "belle"
/ 12 = "earth"
/ 13 = "soil"
/ 14 = "cloud"
/ 15 = "milk"
/ 16 = "phase"
/ 17 = "flag"
/ 18 = "string"
/ 19 = "tribe"
/ 20 = "glove"
/ 21 = "norm"
/ 22 = "wrist"
/ 23 = "hay"
/ 24 = "nest"
/ 25 = "breeze"
</item>

<item text2items>
/ 1 = "fell"
/ 2 = "dough"
/ 3 = "town"
/ 4 = "class"
/ 5 = "son"
/ 6 = "type"
/ 7 = "steam"
/ 8 = "whale"
/ 9 = "goal"
/ 10 = "site"
/ 11 = "wall"
/ 12 = "store"
/ 13 = "sum"
/ 14 = "chin"
/ 15 = "barn"
/ 16 = "base"
/ 17 = "chance"
/ 18 = "board"
/ 19 = "skin"
/ 20 = "nail"
/ 21 = "skirt"
/ 22 = "brain"
/ 23 = "page"
/ 24 = "staff"
/ 25 = "band"
/ 26 = "brick"
/ 27 = "log"
/ 28 = "key"
/ 29 = "leg"
/ 30 = "firm"
/ 31 = "fat"
/ 32 = "mall"
/ 33 = "pitch"
/ 34 = "male"
/ 35 = "style"
/ 36 = "bag"
/ 37 = "snow"
/ 38 = "fur"
/ 39 = "lawn"
/ 40 = "length"
/ 41 = "task"
/ 42 = "turn"
/ 43 = "grass"
/ 44 = "gear"
/ 45 = "port"
/ 46 = "sand"
/ 47 = "stone"
/ 48 = "farm"
/ 49 = "belt"
/ 50 = "wire"
/ 51 = "moon"
/ 52 = "bell"
/ 53 = "title"
/ 54 = "bone"
/ 55 = "net"
/ 56 = "tea"
/ 57 = "iron"
/ 58 = "cow"
/ 59 = "front"
/ 60 = "pool"
/ 61 = "rail"
/ 62 = "dish"
/ 63 = "hill"
/ 64 = "cheese"
/ 65 = "pen"
/ 66 = "cover"
/ 67 = "map"
/ 68 = "clerk"
/ 69 = "chain"
/ 70 = "tank"
/ 71 = "drum"
/ 72 = "root"
/ 73 = "shirt"
/ 74 = "jar"
/ 75 = "trash"
</item>

<trial nextlist>
/ stimulustimes = [0=next]
/ response = timeout(5000)
/ validresponse = (" ", 28)
</trial>

<likert A11trial>
/ stimulustimes = [0= A11]
/ numpoints = 7
/ anchors = [1="x"; 7="y"]
/ anchorwidth = 140px
/ fontstyle = ("Georgia", -19, false, false, false, false, 5, 0)
/ position = (50, 70)
/ mouse = true
/ response = timeout(5000000)
/ posttrialpause = 750
</likert>

<likert text2trial>
/ stimulustimes = [0= text2]
/  numpoints = 7
/ anchors = [1="x"; 7="y"]
/ anchorwidth = 140px
/ fontstyle = ("Georgia", -19, false, false, false, false, 5, 0)
/ position = (50, 70)
/ mouse = true
/ response = timeout(5000000)
/ posttrialpause = 750
</likert>

<instruct>
/ nextkey = (" ")
/ nextlabel = ("Space-Bar >>")
/ prevkey = ("a")
/ prevlabel = ("<< B")
/ font = ("Garamond", -24, 700, 0, 18)
</instruct>

<page expt_intro>
Instructions.
</page>

<page expt_intro2>
More instructions.
</page>

<page expt_end>
This concludes this experimental session.  Please see the experimenter for further instructions
</page>

You do the same thing for the other chunks of blocks.



Thank you very much! This was very helpful!!

GO


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....






Millisecond Forums


Search