By uni-student92084 - 1/31/2020
For my study, I am testing whether people have a preference for the Republican or the Democratic party. I am running political honestly scores across the screen, for both parties. My plan is to have the first score that appears on the screen to either be a good Democratic or Republican scores and then all the scores afterward will be randomized. So every score that will appear on the screen first will either be a good Republican or good Democratic score.
For my current script, I have figured out how to randomize scores using lists, but is there a way where I can pick whether a good Republican/Democratic score will run first and then have the rest of the scores run at random?
Any advice would be greatly appreciated! LEGEND: Dem/Rep plus= good political honesty scores Dem/Rep minus = bad political honesty scores
Dem B= Demorcartic scores are better Rep B = Republican scores are better
<item Demplus> /1 = "score1+" /2 = "score2+" /3 = "score3+" </item>
<item Demminus> /1 = "score1-" /2 = "score2-" /3 = "score3-" </item>
<item Repplus> /1 = "score1+" /2 = "score2+" /3 = "score3+" </item>
<item Repminus> /1 = "score1-" /2 = "score2-" /3 = "score3-" </item>
<text Demplus1> /items = Demplus /txcolor = (blue) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Demplusitems.nextindex </text>
<text Demplus2> /items = Demplus /txcolor = (blue) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Demplusitems.nextindex </text>
<text Demplus3> /items = Demplus /txcolor = (blue) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Demplusitems.nextindex </text>
<list Demplusitems> / poolsize = 3 / selectionrate = always / replace =true </list>
<text Demminus1> /items = Demminus /txcolor = (blue) /txbgcolor = (white) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Demminusitems.nextindex </text>
<text Demminus2> /items = Demminus /txcolor = (blue) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Demminusitems.nextindex </text>
<text Demminus3> /items = Demminus /txcolor = (blue) /txbgcolor = (white) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Demminusitems.nextindex </text>
<list Demminusitems> / poolsize = 3 / selectionrate = always / replace =true </list>
<text Repplus1> /items = Repplus /txcolor = (red) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Repplusitems.nextindex </text>
<text Repplus2> /items = Repplus /txcolor = (red) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Repplusitems.nextindex </text>
<text Repplus3> /items = Repplus /txcolor = (red) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Repplusitems.nextindex </text>
<list Repplusitems> / poolsize = 3 / selectionrate = always / replace =true </list>
<text Repminus1> /items = Repminus /txcolor = (red) /animation = path (5000, 1, 0%, 90%, 100%, 90%) /select = list.Repminusitems.nextindex </text>
<text Repminus2> /items = Repminus /txcolor = (red) /animation = path (5000, 1, 0%, 90%, 100%, 90%) /select = list.Repminusitems.nextindex </text>
<text Repminus3> /items = Repminus /txcolor = (red) /animation = path (5000, 1, 0%, 90%, 100%, 90%) /select = list.Repminusitems.nextindex </text>
<list Repminusitems> / poolsize = 3 / selectionrate = always / replace = true </list>
<list DemB> /items = (text.Demplus1, text.Demplus2, text.Demplus3, text.Repminus1, text.Repminus2, text.Repminus3) /selectionrate =always /selectionmode =random /replace = false </list>
<list RepB> /items= ( text.Demminus1,text.Demminus2,text.Demminus3, text.Repplus1,text.Repplus2, text.Repplus3) /selectionrate =always /selectionmode =random /replace = false </list>
<trial PolicyA> /ontrialbegin = [ trial.example.insertstimulustime(list.DemB.nextvalue, 0); trial.example.insertstimulustime(list.RepB.nextvalue, 1000); trial.example.insertstimulustime(list.DemB.nextvalue, 2000); trial.example.insertstimulustime(list.RepB.nextvalue, 3000); trial.example.insertstimulustime(list.DemB.nextvalue, 4000); trial.example.insertstimulustime(list.RepB.nextvalue, 5000); trial.example.insertstimulustime(list.DemB.nextvalue, 6000); trial.example.insertstimulustime(list.RepB.nextvalue, 7000); trial.example.insertstimulustime(list.DemB.nextvalue, 8000); trial.example.insertstimulustime(list.RepB.nextvalue, 9000); trial.example.insertstimulustime(list.DemB.nextvalue, 10000); trial.example.insertstimulustime(list.RepB.nextvalue, 11000); trial.example.insertstimulustime(list.DemB.nextvalue, 12000);] / validresponse = (57) / posttrialpause = 500 /ontrialend= [trial.PolicyA.resetstimulusframes(7000)] </trial>
|
By Dave - 1/31/2020
+xFor my study, I am testing whether people have a preference for the Republican or the Democratic party. I am running political honestly scores across the screen, for both parties. My plan is to have the first score that appears on the screen to either be a good Democratic or Republican scores and then all the scores afterward will be randomized. So every score that will appear on the screen first will either be a good Republican or good Democratic score. For my current script, I have figured out how to randomize scores using lists, but is there a way where I can pick whether a good Republican/Democratic score will run first and then have the rest of the scores run at random? Any advice would be greatly appreciated! LEGEND: Dem/Rep plus= good political honesty scores Dem/Rep minus = bad political honesty scores Dem B= Demorcartic scores are better Rep B = Republican scores are better <item Demplus> /1 = "score1+" /2 = "score2+" /3 = "score3+" </item> <item Demminus> /1 = "score1-" /2 = "score2-" /3 = "score3-" </item> <item Repplus> /1 = "score1+" /2 = "score2+" /3 = "score3+" </item> <item Repminus> /1 = "score1-" /2 = "score2-" /3 = "score3-" </item> <text Demplus1> /items = Demplus /txcolor = (blue) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Demplusitems.nextindex </text> <text Demplus2> /items = Demplus /txcolor = (blue) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Demplusitems.nextindex </text> <text Demplus3> /items = Demplus /txcolor = (blue) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Demplusitems.nextindex </text> <list Demplusitems> / poolsize = 3 / selectionrate = always / replace =true </list> <text Demminus1> /items = Demminus /txcolor = (blue) /txbgcolor = (white) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Demminusitems.nextindex </text> <text Demminus2> /items = Demminus /txcolor = (blue) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Demminusitems.nextindex </text> <text Demminus3> /items = Demminus /txcolor = (blue) /txbgcolor = (white) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Demminusitems.nextindex </text> <list Demminusitems> / poolsize = 3 / selectionrate = always / replace =true </list> <text Repplus1> /items = Repplus /txcolor = (red) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Repplusitems.nextindex </text> <text Repplus2> /items = Repplus /txcolor = (red) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Repplusitems.nextindex </text> <text Repplus3> /items = Repplus /txcolor = (red) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Repplusitems.nextindex </text> <list Repplusitems> / poolsize = 3 / selectionrate = always / replace =true </list> <text Repminus1> /items = Repminus /txcolor = (red) /animation = path (5000, 1, 0%, 90%, 100%, 90%) /select = list.Repminusitems.nextindex </text> <text Repminus2> /items = Repminus /txcolor = (red) /animation = path (5000, 1, 0%, 90%, 100%, 90%) /select = list.Repminusitems.nextindex </text> <text Repminus3> /items = Repminus /txcolor = (red) /animation = path (5000, 1, 0%, 90%, 100%, 90%) /select = list.Repminusitems.nextindex </text> <list Repminusitems> / poolsize = 3 / selectionrate = always / replace = true </list> <list DemB> /items = (text.Demplus1, text.Demplus2, text.Demplus3, text.Repminus1, text.Repminus2, text.Repminus3) /selectionrate =always /selectionmode =random /replace = false </list> <list RepB> /items= ( text.Demminus1,text.Demminus2,text.Demminus3, text.Repplus1,text.Repplus2, text.Repplus3) /selectionrate =always /selectionmode =random /replace = false </list> <trial PolicyA> /ontrialbegin = [ trial.example.insertstimulustime(list.DemB.nextvalue, 0); trial.example.insertstimulustime(list.RepB.nextvalue, 1000); trial.example.insertstimulustime(list.DemB.nextvalue, 2000); trial.example.insertstimulustime(list.RepB.nextvalue, 3000); trial.example.insertstimulustime(list.DemB.nextvalue, 4000); trial.example.insertstimulustime(list.RepB.nextvalue, 5000); trial.example.insertstimulustime(list.DemB.nextvalue, 6000); trial.example.insertstimulustime(list.RepB.nextvalue, 7000); trial.example.insertstimulustime(list.DemB.nextvalue, 8000); trial.example.insertstimulustime(list.RepB.nextvalue, 9000); trial.example.insertstimulustime(list.DemB.nextvalue, 10000); trial.example.insertstimulustime(list.RepB.nextvalue, 11000); trial.example.insertstimulustime(list.DemB.nextvalue, 12000);] / validresponse = (57) / posttrialpause = 500 /ontrialend= [trial.PolicyA.resetstimulusframes(7000)] </trial> Create two <text> elements -- DemPlusfirst and RepPlusFirst --, put them in a <list>, sample the first stimulus from that <list>.
Sample the remaining stimuli randomly from another <list>.
|
By uni-student92084 - 1/31/2020
+x+xFor my study, I am testing whether people have a preference for the Republican or the Democratic party. I am running political honestly scores across the screen, for both parties. My plan is to have the first score that appears on the screen to either be a good Democratic or Republican scores and then all the scores afterward will be randomized. So every score that will appear on the screen first will either be a good Republican or good Democratic score. For my current script, I have figured out how to randomize scores using lists, but is there a way where I can pick whether a good Republican/Democratic score will run first and then have the rest of the scores run at random? Any advice would be greatly appreciated! LEGEND: Dem/Rep plus= good political honesty scores Dem/Rep minus = bad political honesty scores Dem B= Demorcartic scores are better Rep B = Republican scores are better <item Demplus> /1 = "score1+" /2 = "score2+" /3 = "score3+" </item> <item Demminus> /1 = "score1-" /2 = "score2-" /3 = "score3-" </item> <item Repplus> /1 = "score1+" /2 = "score2+" /3 = "score3+" </item> <item Repminus> /1 = "score1-" /2 = "score2-" /3 = "score3-" </item> <text Demplus1> /items = Demplus /txcolor = (blue) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Demplusitems.nextindex </text> <text Demplus2> /items = Demplus /txcolor = (blue) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Demplusitems.nextindex </text> <text Demplus3> /items = Demplus /txcolor = (blue) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Demplusitems.nextindex </text> <list Demplusitems> / poolsize = 3 / selectionrate = always / replace =true </list> <text Demminus1> /items = Demminus /txcolor = (blue) /txbgcolor = (white) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Demminusitems.nextindex </text> <text Demminus2> /items = Demminus /txcolor = (blue) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Demminusitems.nextindex </text> <text Demminus3> /items = Demminus /txcolor = (blue) /txbgcolor = (white) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Demminusitems.nextindex </text> <list Demminusitems> / poolsize = 3 / selectionrate = always / replace =true </list> <text Repplus1> /items = Repplus /txcolor = (red) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Repplusitems.nextindex </text> <text Repplus2> /items = Repplus /txcolor = (red) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Repplusitems.nextindex </text> <text Repplus3> /items = Repplus /txcolor = (red) /animation = path (5000, 1, 0%, 90%, 100%, 90%) / select = list.Repplusitems.nextindex </text> <list Repplusitems> / poolsize = 3 / selectionrate = always / replace =true </list> <text Repminus1> /items = Repminus /txcolor = (red) /animation = path (5000, 1, 0%, 90%, 100%, 90%) /select = list.Repminusitems.nextindex </text> <text Repminus2> /items = Repminus /txcolor = (red) /animation = path (5000, 1, 0%, 90%, 100%, 90%) /select = list.Repminusitems.nextindex </text> <text Repminus3> /items = Repminus /txcolor = (red) /animation = path (5000, 1, 0%, 90%, 100%, 90%) /select = list.Repminusitems.nextindex </text> <list Repminusitems> / poolsize = 3 / selectionrate = always / replace = true </list> <list DemB> /items = (text.Demplus1, text.Demplus2, text.Demplus3, text.Repminus1, text.Repminus2, text.Repminus3) /selectionrate =always /selectionmode =random /replace = false </list> <list RepB> /items= ( text.Demminus1,text.Demminus2,text.Demminus3, text.Repplus1,text.Repplus2, text.Repplus3) /selectionrate =always /selectionmode =random /replace = false </list> <trial PolicyA> /ontrialbegin = [ trial.example.insertstimulustime(list.DemB.nextvalue, 0); trial.example.insertstimulustime(list.RepB.nextvalue, 1000); trial.example.insertstimulustime(list.DemB.nextvalue, 2000); trial.example.insertstimulustime(list.RepB.nextvalue, 3000); trial.example.insertstimulustime(list.DemB.nextvalue, 4000); trial.example.insertstimulustime(list.RepB.nextvalue, 5000); trial.example.insertstimulustime(list.DemB.nextvalue, 6000); trial.example.insertstimulustime(list.RepB.nextvalue, 7000); trial.example.insertstimulustime(list.DemB.nextvalue, 8000); trial.example.insertstimulustime(list.RepB.nextvalue, 9000); trial.example.insertstimulustime(list.DemB.nextvalue, 10000); trial.example.insertstimulustime(list.RepB.nextvalue, 11000); trial.example.insertstimulustime(list.DemB.nextvalue, 12000);] / validresponse = (57) / posttrialpause = 500 /ontrialend= [trial.PolicyA.resetstimulusframes(7000)] </trial> Create two <text> elements -- DemPlusfirst and RepPlusFirst --, put them in a <list>, sample the first stimulus from that <list>. Sample the remaining stimuli randomly from another <list>. I followed your advice and it worked. Thank you!
|
|