By anisa_khalfan - 3/19/2021
Hi, I am running into a bit of an issue with this study I am making. Basically there are orange and purple faces and each block has a different sorting rule (e.g., respond to gender if it is orange, and respond to emotion if it is purple). Is there a way to set up the correct response so that it depends on the trial's a) colour of the presented face, and b) current sorting rule Right now, I am having to hard code each of the different trial types (orange, male, angry - sorting rule 1/ orange, male, neutral - sorting rule 1/ orange, female, angry -sorting rule 1 etr...) since each will have a different response.
O = orange, P = purple, M = male, F = female, N = neutral, A = angry Here are a few of my trials right now:
<trial training_OMA> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_OMA, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (205) </trial>
<trial training_PMN> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_PMN, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (205) </trial>
<trial training_PFN> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_PFN, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (205) </trial>
<trial training_OFA> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_OFA, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (203) </trial>
I would appreciate any help! I have spent the last week looking through past questions and came up short.
|
By Dave - 3/19/2021
+xHi, I am running into a bit of an issue with this study I am making. Basically there are orange and purple faces and each block has a different sorting rule (e.g., respond to gender if it is orange, and respond to emotion if it is purple). Is there a way to set up the correct response so that it depends on the trial's a) colour of the presented face, and b) current sorting rule Right now, I am having to hard code each of the different trial types (orange, male, angry - sorting rule 1/ orange, male, neutral - sorting rule 1/ orange, female, angry -sorting rule 1 etr...) since each will have a different response. O = orange, P = purple, M = male, F = female, N = neutral, A = angry Here are a few of my trials right now: <trial training_OMA> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_OMA, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (205) </trial> <trial training_PMN> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_PMN, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (205) </trial> <trial training_PFN> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_PFN, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (205) </trial> <trial training_OFA> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_OFA, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (203) </trial> I would appreciate any help! I have spent the last week looking through past questions and came up short. You'll want to make use of appropriate logic per /iscorrectresponse (not /correctresponse). How that would have to look in your case is impossible to say based on the little information and code you provided.
|
By anisa_khalfan - 3/19/2021
+x+xHi, I am running into a bit of an issue with this study I am making. Basically there are orange and purple faces and each block has a different sorting rule (e.g., respond to gender if it is orange, and respond to emotion if it is purple). Is there a way to set up the correct response so that it depends on the trial's a) colour of the presented face, and b) current sorting rule Right now, I am having to hard code each of the different trial types (orange, male, angry - sorting rule 1/ orange, male, neutral - sorting rule 1/ orange, female, angry -sorting rule 1 etr...) since each will have a different response. O = orange, P = purple, M = male, F = female, N = neutral, A = angry Here are a few of my trials right now: <trial training_OMA> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_OMA, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (205) </trial> <trial training_PMN> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_PMN, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (205) </trial> <trial training_PFN> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_PFN, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (205) </trial> <trial training_OFA> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_OFA, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (203) </trial> I would appreciate any help! I have spent the last week looking through past questions and came up short. You'll want to make use of appropriate logic per /iscorrectresponse (not /correctresponse). How that would have to look in your case is impossible to say based on the little information and code you provided. So if I have these items:
<item training_OMN> /1 = "077_m_m_n_b.jpg" </item>
<item training_OMA> /1 = "082_m_m_a_b.jpg" </item>
<item training_OFA> /1 = "088_o_f_a_a.jpg" </item>
<item training_OFN> /1 = "097_m_f_n_b.jpg" </item> <item error> /1 = "X" </item>
<item Sorting_Rule_Block1> /1 = " Orange = Gender Purple = Emotion " </item>
<item RM_left_Block1> /1 = "Woman Angry" </item>
<item RM_right_Block1> /1 = "Man Neutral" </item>
<item fixation> /1 = "+" </item>
<item right> /1 = "right.jpg" </item>
<item left> /1 = "left.jpg" </item>
<picture training_OMN> / items = training_OMN / size = (42%, 42%) / position = (50%,50%) </picture>
<picture training_OMA> / items = training_OMA / size = (42%, 42%) / position = (50%,50%) </picture>
<picture training_OFA> / items = training_OFA / size = (42%, 42%) / position = (50%,50%) </picture>
<picture training_OFN> / items = training_OFN / size = (42%, 42%) / position = (50%,50%) </picture>
<text fixation> / items = fixation / position = (50%,50%) / txcolor = black </text>
<text error> / items = error / position = (50%,50%) / txbgcolor = transparent / txcolor = black </text>
<picture right> / items = left / size = (10%,10%) / position = (30%, 50%) </picture>
<picture left> / items = right / size = (10%,10%) / position = (70%, 50%) </picture>
<text Sorting_Rule_1> / items = Sorting_Rule_Block1 / position = (50%, 14%) / txcolor = black </text>
<text RM_left_Block1> / items = RM_left_Block1 / position = (20%, 50%) / txcolor = black </text>
<text RM_right_Block1> / items = RM_right_Block1 / position = (80%, 50%) / txcolor = black </text>
<shape rectangle> / color = (220,220,220) / size = (100%,100%) </shape>
And I want to create one trial instead of 4 separate ones for the 4 training_OMN, _OMA, _OFA, _OFN, such that if OMN, or OMA are the faces presented the correct response == 205, but if OFA, or OFN are the ones presented the correct response == 203.
How would I go about doing this?
This is how I am creating the trial for one face right now:
<trial training_OMA> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_OMA, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (205) </trial>
|
By Dave - 3/19/2021
+x+x+xHi, I am running into a bit of an issue with this study I am making. Basically there are orange and purple faces and each block has a different sorting rule (e.g., respond to gender if it is orange, and respond to emotion if it is purple). Is there a way to set up the correct response so that it depends on the trial's a) colour of the presented face, and b) current sorting rule Right now, I am having to hard code each of the different trial types (orange, male, angry - sorting rule 1/ orange, male, neutral - sorting rule 1/ orange, female, angry -sorting rule 1 etr...) since each will have a different response. O = orange, P = purple, M = male, F = female, N = neutral, A = angry Here are a few of my trials right now: <trial training_OMA> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_OMA, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (205) </trial> <trial training_PMN> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_PMN, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (205) </trial> <trial training_PFN> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_PFN, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (205) </trial> <trial training_OFA> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_OFA, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (203) </trial> I would appreciate any help! I have spent the last week looking through past questions and came up short. You'll want to make use of appropriate logic per /iscorrectresponse (not /correctresponse). How that would have to look in your case is impossible to say based on the little information and code you provided. So if I have these items: <item training_OMN> /1 = "077_m_m_n_b.jpg" </item> <item training_OMA> /1 = "082_m_m_a_b.jpg" </item> <item training_OFA> /1 = "088_o_f_a_a.jpg" </item> <item training_OFN> /1 = "097_m_f_n_b.jpg" </item> <item error> /1 = "X" </item> <item Sorting_Rule_Block1> /1 = " Orange = Gender Purple = Emotion " </item> <item RM_left_Block1> /1 = "Woman Angry" </item> <item RM_right_Block1> /1 = "Man Neutral" </item> <item fixation> /1 = "+" </item> <item right> /1 = "right.jpg" </item> <item left> /1 = "left.jpg" </item> <picture training_OMN> / items = training_OMN / size = (42%, 42%) / position = (50%,50%) </picture> <picture training_OMA> / items = training_OMA / size = (42%, 42%) / position = (50%,50%) </picture> <picture training_OFA> / items = training_OFA / size = (42%, 42%) / position = (50%,50%) </picture> <picture training_OFN> / items = training_OFN / size = (42%, 42%) / position = (50%,50%) </picture> <text fixation> / items = fixation / position = (50%,50%) / txcolor = black </text> <text error> / items = error / position = (50%,50%) / txbgcolor = transparent / txcolor = black </text> <picture right> / items = left / size = (10%,10%) / position = (30%, 50%) </picture> <picture left> / items = right / size = (10%,10%) / position = (70%, 50%) </picture> <text Sorting_Rule_1> / items = Sorting_Rule_Block1 / position = (50%, 14%) / txcolor = black </text> <text RM_left_Block1> / items = RM_left_Block1 / position = (20%, 50%) / txcolor = black </text> <text RM_right_Block1> / items = RM_right_Block1 / position = (80%, 50%) / txcolor = black </text> <shape rectangle> / color = (220,220,220) / size = (100%,100%) </shape> And I want to create one trial instead of 4 separate ones for the 4 training_OMN, _OMA, _OFA, _OFN, such that if OMN, or OMA are the faces presented the correct response == 205, but if OFA, or OFN are the ones presented the correct response == 203. How would I go about doing this? This is how I am creating the trial for one face right now: <trial training_OMA> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_OMA, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (205) </trial> If you need to provide code that requires external files to run, you also need to provide those external files (here: images).
|
By anisa_khalfan - 3/19/2021
+x+x+xHi, I am running into a bit of an issue with this study I am making. Basically there are orange and purple faces and each block has a different sorting rule (e.g., respond to gender if it is orange, and respond to emotion if it is purple). Is there a way to set up the correct response so that it depends on the trial's a) colour of the presented face, and b) current sorting rule Right now, I am having to hard code each of the different trial types (orange, male, angry - sorting rule 1/ orange, male, neutral - sorting rule 1/ orange, female, angry -sorting rule 1 etr...) since each will have a different response. O = orange, P = purple, M = male, F = female, N = neutral, A = angry Here are a few of my trials right now: <trial training_OMA> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_OMA, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (205) </trial> <trial training_PMN> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_PMN, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (205) </trial> <trial training_PFN> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_PFN, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (205) </trial> <trial training_OFA> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_OFA, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (203) </trial> I would appreciate any help! I have spent the last week looking through past questions and came up short. You'll want to make use of appropriate logic per /iscorrectresponse (not /correctresponse). How that would have to look in your case is impossible to say based on the little information and code you provided. So if I have these items: <item training_OMN> /1 = "077_m_m_n_b.jpg" </item> <item training_OMA> /1 = "082_m_m_a_b.jpg" </item> <item training_OFA> /1 = "088_o_f_a_a.jpg" </item> <item training_OFN> /1 = "097_m_f_n_b.jpg" </item> <item error> /1 = "X" </item> <item Sorting_Rule_Block1> /1 = " Orange = Gender Purple = Emotion " </item> <item RM_left_Block1> /1 = "Woman Angry" </item> <item RM_right_Block1> /1 = "Man Neutral" </item> <item fixation> /1 = "+" </item> <item right> /1 = "right.jpg" </item> <item left> /1 = "left.jpg" </item> <picture training_OMN> / items = training_OMN / size = (42%, 42%) / position = (50%,50%) </picture> <picture training_OMA> / items = training_OMA / size = (42%, 42%) / position = (50%,50%) </picture> <picture training_OFA> / items = training_OFA / size = (42%, 42%) / position = (50%,50%) </picture> <picture training_OFN> / items = training_OFN / size = (42%, 42%) / position = (50%,50%) </picture> <text fixation> / items = fixation / position = (50%,50%) / txcolor = black </text> <text error> / items = error / position = (50%,50%) / txbgcolor = transparent / txcolor = black </text> <picture right> / items = left / size = (10%,10%) / position = (30%, 50%) </picture> <picture left> / items = right / size = (10%,10%) / position = (70%, 50%) </picture> <text Sorting_Rule_1> / items = Sorting_Rule_Block1 / position = (50%, 14%) / txcolor = black </text> <text RM_left_Block1> / items = RM_left_Block1 / position = (20%, 50%) / txcolor = black </text> <text RM_right_Block1> / items = RM_right_Block1 / position = (80%, 50%) / txcolor = black </text> <shape rectangle> / color = (220,220,220) / size = (100%,100%) </shape> And I want to create one trial instead of 4 separate ones for the 4 training_OMN, _OMA, _OFA, _OFN, such that if OMN, or OMA are the faces presented the correct response == 205, but if OFA, or OFN are the ones presented the correct response == 203. How would I go about doing this? This is how I am creating the trial for one face right now: <trial training_OMA> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_OMA, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (205) </trial>
|
By Dave - 3/19/2021
+x+x+x+xHi, I am running into a bit of an issue with this study I am making. Basically there are orange and purple faces and each block has a different sorting rule (e.g., respond to gender if it is orange, and respond to emotion if it is purple). Is there a way to set up the correct response so that it depends on the trial's a) colour of the presented face, and b) current sorting rule Right now, I am having to hard code each of the different trial types (orange, male, angry - sorting rule 1/ orange, male, neutral - sorting rule 1/ orange, female, angry -sorting rule 1 etr...) since each will have a different response. O = orange, P = purple, M = male, F = female, N = neutral, A = angry Here are a few of my trials right now: <trial training_OMA> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_OMA, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (205) </trial> <trial training_PMN> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_PMN, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (205) </trial> <trial training_PFN> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_PFN, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (205) </trial> <trial training_OFA> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_OFA, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (203) </trial> I would appreciate any help! I have spent the last week looking through past questions and came up short. You'll want to make use of appropriate logic per /iscorrectresponse (not /correctresponse). How that would have to look in your case is impossible to say based on the little information and code you provided. So if I have these items: <item training_OMN> /1 = "077_m_m_n_b.jpg" </item> <item training_OMA> /1 = "082_m_m_a_b.jpg" </item> <item training_OFA> /1 = "088_o_f_a_a.jpg" </item> <item training_OFN> /1 = "097_m_f_n_b.jpg" </item> <item error> /1 = "X" </item> <item Sorting_Rule_Block1> /1 = " Orange = Gender Purple = Emotion " </item> <item RM_left_Block1> /1 = "Woman Angry" </item> <item RM_right_Block1> /1 = "Man Neutral" </item> <item fixation> /1 = "+" </item> <item right> /1 = "right.jpg" </item> <item left> /1 = "left.jpg" </item> <picture training_OMN> / items = training_OMN / size = (42%, 42%) / position = (50%,50%) </picture> <picture training_OMA> / items = training_OMA / size = (42%, 42%) / position = (50%,50%) </picture> <picture training_OFA> / items = training_OFA / size = (42%, 42%) / position = (50%,50%) </picture> <picture training_OFN> / items = training_OFN / size = (42%, 42%) / position = (50%,50%) </picture> <text fixation> / items = fixation / position = (50%,50%) / txcolor = black </text> <text error> / items = error / position = (50%,50%) / txbgcolor = transparent / txcolor = black </text> <picture right> / items = left / size = (10%,10%) / position = (30%, 50%) </picture> <picture left> / items = right / size = (10%,10%) / position = (70%, 50%) </picture> <text Sorting_Rule_1> / items = Sorting_Rule_Block1 / position = (50%, 14%) / txcolor = black </text> <text RM_left_Block1> / items = RM_left_Block1 / position = (20%, 50%) / txcolor = black </text> <text RM_right_Block1> / items = RM_right_Block1 / position = (80%, 50%) / txcolor = black </text> <shape rectangle> / color = (220,220,220) / size = (100%,100%) </shape> And I want to create one trial instead of 4 separate ones for the 4 training_OMN, _OMA, _OFA, _OFN, such that if OMN, or OMA are the faces presented the correct response == 205, but if OFA, or OFN are the ones presented the correct response == 203. How would I go about doing this? This is how I am creating the trial for one face right now: <trial training_OMA> / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_OMA, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / correctresponse = (205) </trial>
<item error> /1 = "X" </item>
<item Sorting_Rule_Block1> /1 = " Orange = Gender Purple = Emotion " </item>
<item RM_left_Block1> /1 = "Woman Angry" </item>
<item RM_right_Block1> /1 = "Man Neutral" </item>
<item fixation> /1 = "+" </item>
<item right> /1 = "right.jpg" </item>
<item left> /1 = "left.jpg" </item>
<picture training_O> / items = training_O_items / select = values.itemnumber / size = (42%, 42%) / position = (50%,50%) </picture>
<text fixation> / items = fixation / position = (50%,50%) / txcolor = black </text>
<text error> / items = error / position = (50%,50%) / txbgcolor = transparent / txcolor = black </text>
<picture right> / items = left / size = (10%,10%) / position = (30%, 50%) </picture>
<picture left> / items = right / size = (10%,10%) / position = (70%, 50%) </picture>
<text Sorting_Rule_1> / items = Sorting_Rule_Block1 / position = (50%, 14%) / txcolor = black </text>
<text RM_left_Block1> / items = RM_left_Block1 / position = (20%, 50%) / txcolor = black </text>
<text RM_right_Block1> / items = RM_right_Block1 / position = (80%, 50%) / txcolor = black </text>
<shape rectangle> / color = (220,220,220) / size = (100%,100%) </shape>
<item training_O_items> /1 = "077_m_m_n_b.jpg" /2 = "082_m_m_a_b.jpg" /3 = "088_o_f_a_a.jpg" /4 = "097_m_f_n_b.jpg" </item>
// 4 items in this example <list otrainingitemnumbers> / poolsize = 4 </list>
<values> / itemnumber = 1 / item = "" / gender = "" / emotion = "" </values>
// select next item /ontrialbegin // extract gender and emotion information from item's file name <trial training_O> / ontrialbegin = [ values.itemnumber = list.otrainingitemnumbers.nextindex; values.item = item.training_O_items.item(values.itemnumber); values.gender = substring(values.item, 6, 1); values.emotion = substring(values.item, 8, 1); ] / validresponse = (203,205) / stimulustimes = [0 = rectangle; 100 = fixation; 750 = training_O, Sorting_Rule_1, RM_left_Block1, RM_right_Block1, right,left] / beginresponsetime = 750 / iscorrectresponse = [ (values.gender == "f" && trial.training_O.response == 203) || (values.gender == "m" && trial.training_O.response == 205) ] </trial>
<block example> / trials = [1-4 = training_O] </block>
<data> / columns = (date time subject group blocknum blockcode trialnum trialcode response latency correct values.itemnumber values.item values.gender values.emotion) / separatefiles = true </data>
|
|