Group: Forum Members
Posts: 37,
Visits: 146
|
Hello everyone,
right now I am programming a Stroop-Task with different words and I would like to know whether it is possible to assign the colors (red, green, blue, yellow) in a randomized order for each participant.
Normally it would look like that: <text rot> / items = ("rot") / color = red </text rot>
<trial rot> / stimulustimes = [1=rot, redreminder, greenreminder, bluereminder, yellowreminder] / correctresponse = ("d") / validresponse = ("d" "f" "j" "k") /ontrialend = [ if (trial.rot.responsetext == "D"){ values.responseCategory = "red"; } else if (trial.rot.responsetext == "F"){ values.responseCategory = "green"; } else if (trial.rot.responsetext == "J"){ values.responseCategory = "blue"; } else if (trial.rot.responsetext == "K"){ values.responseCategory = "yellow"; }; list.responses.appenditem(trial.rot.correct); list.responses_congruent.appenditem(trial.rot.correct); if (trial.rot.correct) { list.latencies.appenditem(trial.rot.latency); list.latencies_congruent.appenditem(trial.rot.latency); } ] </trial>
I would like to do it this way: <text rot> / items = ("rot") / color = red, green, blue, yellow </text rot>
<trial rot> / stimulustimes = [1=rot, redreminder, greenreminder, bluereminder, yellowreminder] / correctresponse = ("d") (Now I have the problem that I cannot specifiy the correct answer for this trial because of the randomization. What do I have to define for the result files to see which answer would have been the correct one if the participant pushed a button?) / validresponse = ("d" "f" "j" "k") /ontrialend = [ if (trial.rot.responsetext == "D"){ values.responseCategory = "red"; } else if (trial.rot.responsetext == "F"){ values.responseCategory = "green"; } else if (trial.rot.responsetext == "J"){ values.responseCategory = "blue"; } else if (trial.rot.responsetext == "K"){ values.responseCategory = "yellow"; }; list.responses.appenditem(trial.rot.correct); list.responses_congruent.appenditem(trial.rot.correct); if (trial.rot.correct) { list.latencies.appenditem(trial.rot.latency); list.latencies_congruent.appenditem(trial.rot.latency); } ] </trial>
I hope you understand this issue. If additional information is required feel free to ask!
Thank you very much!
Best Regards, Danny
|