no matching image numbers in the same task


no matching image numbers in the same task

Author
Message
tecnika
tecnika
Distinguished Member
Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)

Group: Forum Members
Posts: 102, Visits: 461
Hi Dave,

I am trying to randomly assign 24 pairs of items (food and non food) in 4 tasks (12 couples each) in a way than the tasks of the same type (e.g. estimate1 and estimate2) contain all the 24 pairs of items with no repetition (12 pairs on estimate1 and 12 different pairs in estimate2). I would like then to apply a similar procedure for the other couple of tasks (the distributions of the pairs can be different from the distribution of the first two tasks).
The pairs of items need to be presented in the same task but in a random order and they can or cannot be adjacent (e.g., F1, F3, nF2, F5, nF5, nF1, nF3, F2 ....).

I tried different way with a list but I was not successful... any idea? I send you the file in attachment. 
Attachments
no_pairing_items.iqx (1 view, 37.00 KB)
Dave
Dave
Supreme Being
Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)

Group: Administrators
Posts: 8.9K, Visits: 38K
tecnika - Friday, July 13, 2018
Hi Dave,

I am trying to randomly assign 24 pairs of items (food and non food) in 4 tasks (12 couples each) in a way than the tasks of the same type (e.g. estimate1 and estimate2) contain all the 24 pairs of items with no repetition (12 pairs on estimate1 and 12 different pairs in estimate2). I would like then to apply a similar procedure for the other couple of tasks (the distributions of the pairs can be different from the distribution of the first two tasks).
The pairs of items need to be presented in the same task but in a random order and they can or cannot be adjacent (e.g., F1, F3, nF2, F5, nF5, nF1, nF3, F2 ....).

I tried different way with a list but I was not successful... any idea? I send you the file in attachment. 

Sorry, I don't understand the description of what you want. I also do not see any place in the script where you actually defined any pairs. Please provide a more detailed description of what exactly you want to achieve and please refer to the relevant pieces of code exactly as they are named in the script. Thanks.

tecnika
tecnika
Distinguished Member
Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)

Group: Forum Members
Posts: 102, Visits: 461
Dave - Friday, July 13, 2018
tecnika - Friday, July 13, 2018
Hi Dave,

I am trying to randomly assign 24 pairs of items (food and non food) in 4 tasks (12 couples each) in a way than the tasks of the same type (e.g. estimate1 and estimate2) contain all the 24 pairs of items with no repetition (12 pairs on estimate1 and 12 different pairs in estimate2). I would like then to apply a similar procedure for the other couple of tasks (the distributions of the pairs can be different from the distribution of the first two tasks).
The pairs of items need to be presented in the same task but in a random order and they can or cannot be adjacent (e.g., F1, F3, nF2, F5, nF5, nF1, nF3, F2 ....).

I tried different way with a list but I was not successful... any idea? I send you the file in attachment. 

Sorry, I don't understand the description of what you want. I also do not see any place in the script where you actually defined any pairs. Please provide a more detailed description of what exactly you want to achieve and please refer to the relevant pieces of code exactly as they are named in the script. Thanks.

Hi Dave, sorry I meant pairing item "N" in <item food> with the correspondent item number in <item food> (or vice versa) 
e.g. 03_nonF.jpg with 3_h_swr.jpg. The pairs of items would need to be in the same task and then using different pairs in the second task. The total pairs are 24, so it's ok to repeat the item pairs in the other two tasks (always in a random order). The total number of task is 4, with a total of 48 pairs of trials.

<item non_food>
/1 = "01_nonF.jpg"
/2 = "02_nonF.jpg"
/3 = "03_nonF.jpg"
/4 = "04_nonF.jpg"
/5 = "05_nonF.jpg"
/6 = "06_nonF.jpg"
/7 = "07_nonF.jpg"
/8 = "08_nonF.jpg"
/9 = "09_nonF.jpg"
/10 = "10_nonF.jpg"
/11 = "11_nonF.jpg"
/12 = "12_nonF.jpg"
/13 = "13_nonF.jpg"
/14 = "14_nonF.jpg"
/15 = "15_nonF.jpg"
/16 = "16_nonF.jpg"
/17 = "17_nonF.jpg"
/18 = "18_nonF.jpg"
/19 = "19_nonF.jpg"
/20 = "20_nonF.jpg"
/21 = "21_nonF.jpg"
/22 = "22_nonF.jpg"
/23 = "23_nonF.jpg"
/24 = "24_nonF.jpg"
</item>
<item food>
/1 = "01_h_swt.jpg"
/2 = "02_h_swt.jpg"
/3 = "03_h_svr.jpg"
/4 = "04_un_swt.jpg"
/5 = "05_h_svr.jpg"
/6 = "06_un_swt.jpg"
/7 = "07_un_svr.jpg"    
/8 = "08_un_swt.jpg"
/9 = "09_un_swt.jpg"
/10 = "10_un_swt.jpg"
/11 = "11_un_svr.jpg"
/12 = "12_h_swt.jpg"
/13 = "13_h_swt.jpg"
/14 = "14_h_svr.jpg"
/15 = "15_un_svr.jpg"
/16 = "16_h_svr.jpg"
/17 = "17_h_swt.jpg"
/18 = "18_h_svr.jpg"
/19 = "19_unh_swt.jpg"
/20 = "20_h_svr.jpg"
/21 = "21_h_swt.jpg"
/22 = "22_unh_svr.jpg"
/23 = "23_unh_svr.jpg"
/24 = "24_unh_svr.jpg"
</item>

Hope I was able to be a bit clearer. Thank you, Elena


Dave
Dave
Supreme Being
Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)

Group: Administrators
Posts: 8.9K, Visits: 38K
tecnika - Monday, July 16, 2018
Dave - Friday, July 13, 2018
tecnika - Friday, July 13, 2018
Hi Dave,

I am trying to randomly assign 24 pairs of items (food and non food) in 4 tasks (12 couples each) in a way than the tasks of the same type (e.g. estimate1 and estimate2) contain all the 24 pairs of items with no repetition (12 pairs on estimate1 and 12 different pairs in estimate2). I would like then to apply a similar procedure for the other couple of tasks (the distributions of the pairs can be different from the distribution of the first two tasks).
The pairs of items need to be presented in the same task but in a random order and they can or cannot be adjacent (e.g., F1, F3, nF2, F5, nF5, nF1, nF3, F2 ....).

I tried different way with a list but I was not successful... any idea? I send you the file in attachment. 

Sorry, I don't understand the description of what you want. I also do not see any place in the script where you actually defined any pairs. Please provide a more detailed description of what exactly you want to achieve and please refer to the relevant pieces of code exactly as they are named in the script. Thanks.

Hi Dave, sorry I meant pairing item "N" in <item food> with the correspondent item number in <item food> (or vice versa) 
e.g. 03_nonF.jpg with 3_h_swr.jpg. The pairs of items would need to be in the same task and then using different pairs in the second task. The total pairs are 24, so it's ok to repeat the item pairs in the other two tasks (always in a random order). The total number of task is 4, with a total of 48 pairs of trials.

<item non_food>
/1 = "01_nonF.jpg"
/2 = "02_nonF.jpg"
/3 = "03_nonF.jpg"
/4 = "04_nonF.jpg"
/5 = "05_nonF.jpg"
/6 = "06_nonF.jpg"
/7 = "07_nonF.jpg"
/8 = "08_nonF.jpg"
/9 = "09_nonF.jpg"
/10 = "10_nonF.jpg"
/11 = "11_nonF.jpg"
/12 = "12_nonF.jpg"
/13 = "13_nonF.jpg"
/14 = "14_nonF.jpg"
/15 = "15_nonF.jpg"
/16 = "16_nonF.jpg"
/17 = "17_nonF.jpg"
/18 = "18_nonF.jpg"
/19 = "19_nonF.jpg"
/20 = "20_nonF.jpg"
/21 = "21_nonF.jpg"
/22 = "22_nonF.jpg"
/23 = "23_nonF.jpg"
/24 = "24_nonF.jpg"
</item>
<item food>
/1 = "01_h_swt.jpg"
/2 = "02_h_swt.jpg"
/3 = "03_h_svr.jpg"
/4 = "04_un_swt.jpg"
/5 = "05_h_svr.jpg"
/6 = "06_un_swt.jpg"
/7 = "07_un_svr.jpg"    
/8 = "08_un_swt.jpg"
/9 = "09_un_swt.jpg"
/10 = "10_un_swt.jpg"
/11 = "11_un_svr.jpg"
/12 = "12_h_swt.jpg"
/13 = "13_h_swt.jpg"
/14 = "14_h_svr.jpg"
/15 = "15_un_svr.jpg"
/16 = "16_h_svr.jpg"
/17 = "17_h_swt.jpg"
/18 = "18_h_svr.jpg"
/19 = "19_unh_swt.jpg"
/20 = "20_h_svr.jpg"
/21 = "21_h_swt.jpg"
/22 = "22_unh_svr.jpg"
/23 = "23_unh_svr.jpg"
/24 = "24_unh_svr.jpg"
</item>

Hope I was able to be a bit clearer. Thank you, Elena


Pairing items works like this: https://www.millisecond.com/support/docs/v5/html/howto/howtopairs.htm

And it works the same way if you use list elements holding item numbers.

tecnika
tecnika
Distinguished Member
Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)Distinguished Member (3.8K reputation)

Group: Forum Members
Posts: 102, Visits: 461
Dave - Monday, July 16, 2018
tecnika - Monday, July 16, 2018
Dave - Friday, July 13, 2018
tecnika - Friday, July 13, 2018
Hi Dave,

I am trying to randomly assign 24 pairs of items (food and non food) in 4 tasks (12 couples each) in a way than the tasks of the same type (e.g. estimate1 and estimate2) contain all the 24 pairs of items with no repetition (12 pairs on estimate1 and 12 different pairs in estimate2). I would like then to apply a similar procedure for the other couple of tasks (the distributions of the pairs can be different from the distribution of the first two tasks).
The pairs of items need to be presented in the same task but in a random order and they can or cannot be adjacent (e.g., F1, F3, nF2, F5, nF5, nF1, nF3, F2 ....).

I tried different way with a list but I was not successful... any idea? I send you the file in attachment. 

Sorry, I don't understand the description of what you want. I also do not see any place in the script where you actually defined any pairs. Please provide a more detailed description of what exactly you want to achieve and please refer to the relevant pieces of code exactly as they are named in the script. Thanks.

Hi Dave, sorry I meant pairing item "N" in <item food> with the correspondent item number in <item food> (or vice versa) 
e.g. 03_nonF.jpg with 3_h_swr.jpg. The pairs of items would need to be in the same task and then using different pairs in the second task. The total pairs are 24, so it's ok to repeat the item pairs in the other two tasks (always in a random order). The total number of task is 4, with a total of 48 pairs of trials.

<item non_food>
/1 = "01_nonF.jpg"
/2 = "02_nonF.jpg"
/3 = "03_nonF.jpg"
/4 = "04_nonF.jpg"
/5 = "05_nonF.jpg"
/6 = "06_nonF.jpg"
/7 = "07_nonF.jpg"
/8 = "08_nonF.jpg"
/9 = "09_nonF.jpg"
/10 = "10_nonF.jpg"
/11 = "11_nonF.jpg"
/12 = "12_nonF.jpg"
/13 = "13_nonF.jpg"
/14 = "14_nonF.jpg"
/15 = "15_nonF.jpg"
/16 = "16_nonF.jpg"
/17 = "17_nonF.jpg"
/18 = "18_nonF.jpg"
/19 = "19_nonF.jpg"
/20 = "20_nonF.jpg"
/21 = "21_nonF.jpg"
/22 = "22_nonF.jpg"
/23 = "23_nonF.jpg"
/24 = "24_nonF.jpg"
</item>
<item food>
/1 = "01_h_swt.jpg"
/2 = "02_h_swt.jpg"
/3 = "03_h_svr.jpg"
/4 = "04_un_swt.jpg"
/5 = "05_h_svr.jpg"
/6 = "06_un_swt.jpg"
/7 = "07_un_svr.jpg"    
/8 = "08_un_swt.jpg"
/9 = "09_un_swt.jpg"
/10 = "10_un_swt.jpg"
/11 = "11_un_svr.jpg"
/12 = "12_h_swt.jpg"
/13 = "13_h_swt.jpg"
/14 = "14_h_svr.jpg"
/15 = "15_un_svr.jpg"
/16 = "16_h_svr.jpg"
/17 = "17_h_swt.jpg"
/18 = "18_h_svr.jpg"
/19 = "19_unh_swt.jpg"
/20 = "20_h_svr.jpg"
/21 = "21_h_swt.jpg"
/22 = "22_unh_svr.jpg"
/23 = "23_unh_svr.jpg"
/24 = "24_unh_svr.jpg"
</item>

Hope I was able to be a bit clearer. Thank you, Elena


Pairing items works like this: https://www.millisecond.com/support/docs/v5/html/howto/howtopairs.htm

And it works the same way if you use list elements holding item numbers.

Hi Dave, thank you for your reply. With the method in the link I can only present the stimuli consecutively in the pair one after another, but I would like to randomize them among the 24 items. Also a food trial can be followed by another food trial and the same for the non food trials. So I changed to the below code to try to create a random lists of 12 numbers from 1 to 24 for fill the food sequence list and to use the same 12 previously selected numbers to fill the list of non-food (in a different order).  It looks like I made quite complicated, I am aware of it...and what I got as a result is that the same pictures of food and non-food are repeated. Can you see how this problem can be fixed? Many thanks


<picture non_food>
/ items = non_food
/ size = (list.imageSize.nextvalue, list.imageSize.nextvalue)
/ position = (list.imagePositionA.nextvalue, list.imagePositionB.nextvalue)
/ select = list.image_sequence_Nfood.nextvalue
/ erase = false
</picture>

<picture food>
/ items = food
/ size = (list.imageSize.nextvalue, list.imageSize.nextvalue)
/ position = (list.imagePositionA.nextvalue, list.imagePositionB.nextvalue)
/ select = list.image_sequence_food.nextvalue
/ erase = false
</picture>

<picture half_non_food>
/ items = non_food
/ size = (list.imageSize.nextvalue/2, list.imageSize.nextvalue/2)
/ position = (list.imagePositionA.nextvalue, list.imagePositionB.nextvalue)
/ erase = false
/ select = list.image_sequence_Nfood.nextvalue
</picture>

<picture half_food>
/ items = food
/ size = (list.imageSize.nextvalue/2, list.imageSize.nextvalue/2)
/ position = (list.imagePositionA.nextvalue, list.imagePositionB.nextvalue)
/ select = list.image_sequence_food.nextvalue
/ erase = false
</picture>

<list image_index>
/ items=(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24)
</list>

<list image_sequence_food>
</list>

<list image_sequence_Nfood>
</list>

<block sizing1_task>
/ onblockbegin = [values.block_nr = values.block_nr + 1]
/ onblockbegin = [{
list.image_sequence_food.appenditem(list.image_index.nextindex);
list.image_sequence_food.appenditem(list.image_index.nextindex);
list.image_sequence_food.appenditem(list.image_index.nextindex);
list.image_sequence_food.appenditem(list.image_index.nextindex);
list.image_sequence_food.appenditem(list.image_index.nextindex);
list.image_sequence_food.appenditem(list.image_index.nextindex);
list.image_sequence_food.appenditem(list.image_index.nextindex);
list.image_sequence_food.appenditem(list.image_index.nextindex);
list.image_sequence_food.appenditem(list.image_index.nextindex);
list.image_sequence_food.appenditem(list.image_index.nextindex);
list.image_sequence_food.appenditem(list.image_index.nextindex);
list.image_sequence_food.appenditem(list.image_index.nextindex);

list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
}]

/ onblockbegin = [values.trial_nr = 0]

/ trials = [1=Sizing2_instr; 2-25 = noreplace(sizing1_food,sizing1_food,sizing1_food,sizing1_food,sizing1_food,sizing1_food,sizing1_food,sizing1_food,sizing1_food,sizing1_food,sizing1_food,sizing1_food,
sizing1_nfood, sizing1_nfood,sizing1_nfood,sizing1_nfood,sizing1_nfood,sizing1_nfood,sizing1_nfood,sizing1_nfood,sizing1_nfood,sizing1_nfood,sizing1_nfood,sizing1_nfood)]
/ branch =[if (values.block_nr == 1) {block.sizing2_task;}]
/ branch =[if (values.block_nr == 2) {noreplace(block.estimate1_task, block.estimate2_task)}]
/ branch =[if (values.block_nr == 3) {block.sizing2_task}]
</block>










Dave
Dave
Supreme Being
Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)

Group: Administrators
Posts: 8.9K, Visits: 38K
tecnika - Tuesday, July 17, 2018

Hi Dave, thank you for your reply. With the method in the link I can only present the stimuli consecutively in the pair one after another, but I would like to randomize them among the 24 items. Also a food trial can be followed by another food trial and the same for the non food trials. So I changed to the below code to try to create a random lists of 12 numbers from 1 to 24 for fill the food sequence list and to use the same 12 previously selected numbers to fill the list of non-food (in a different order).  It looks like I made quite complicated, I am aware of it...and what I got as a result is that the same pictures of food and non-food are repeated. Can you see how this problem can be fixed? Many thanks


<picture non_food>
/ items = non_food
/ size = (list.imageSize.nextvalue, list.imageSize.nextvalue)
/ position = (list.imagePositionA.nextvalue, list.imagePositionB.nextvalue)
/ select = list.image_sequence_Nfood.nextvalue
/ erase = false
</picture>

<picture food>
/ items = food
/ size = (list.imageSize.nextvalue, list.imageSize.nextvalue)
/ position = (list.imagePositionA.nextvalue, list.imagePositionB.nextvalue)
/ select = list.image_sequence_food.nextvalue
/ erase = false
</picture>

<picture half_non_food>
/ items = non_food
/ size = (list.imageSize.nextvalue/2, list.imageSize.nextvalue/2)
/ position = (list.imagePositionA.nextvalue, list.imagePositionB.nextvalue)
/ erase = false
/ select = list.image_sequence_Nfood.nextvalue
</picture>

<picture half_food>
/ items = food
/ size = (list.imageSize.nextvalue/2, list.imageSize.nextvalue/2)
/ position = (list.imagePositionA.nextvalue, list.imagePositionB.nextvalue)
/ select = list.image_sequence_food.nextvalue
/ erase = false
</picture>

<list image_index>
/ items=(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24)
</list>

<list image_sequence_food>
</list>

<list image_sequence_Nfood>
</list>

<block sizing1_task>
/ onblockbegin = [values.block_nr = values.block_nr + 1]
/ onblockbegin = [{
list.image_sequence_food.appenditem(list.image_index.nextindex);
list.image_sequence_food.appenditem(list.image_index.nextindex);
list.image_sequence_food.appenditem(list.image_index.nextindex);
list.image_sequence_food.appenditem(list.image_index.nextindex);
list.image_sequence_food.appenditem(list.image_index.nextindex);
list.image_sequence_food.appenditem(list.image_index.nextindex);
list.image_sequence_food.appenditem(list.image_index.nextindex);
list.image_sequence_food.appenditem(list.image_index.nextindex);
list.image_sequence_food.appenditem(list.image_index.nextindex);
list.image_sequence_food.appenditem(list.image_index.nextindex);
list.image_sequence_food.appenditem(list.image_index.nextindex);
list.image_sequence_food.appenditem(list.image_index.nextindex);

list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
list.image_sequence_Nfood.appenditem(list.image_sequence_food.nextindex);
}]

/ onblockbegin = [values.trial_nr = 0]

/ trials = [1=Sizing2_instr; 2-25 = noreplace(sizing1_food,sizing1_food,sizing1_food,sizing1_food,sizing1_food,sizing1_food,sizing1_food,sizing1_food,sizing1_food,sizing1_food,sizing1_food,sizing1_food,
sizing1_nfood, sizing1_nfood,sizing1_nfood,sizing1_nfood,sizing1_nfood,sizing1_nfood,sizing1_nfood,sizing1_nfood,sizing1_nfood,sizing1_nfood,sizing1_nfood,sizing1_nfood)]
/ branch =[if (values.block_nr == 1) {block.sizing2_task;}]
/ branch =[if (values.block_nr == 2) {noreplace(block.estimate1_task, block.estimate2_task)}]
/ branch =[if (values.block_nr == 3) {block.sizing2_task}]
</block>










I'm afraid I simply (still) don't understand what exactly it is you wish to do. Specifically, I'm having trouble what you consider to be a "pair" and how those food / non-food "pairs" are ultimately supposed to be presented in relation to one another. It's not really clear to me what you are referring to as "4 tasks" (do you mean the <block>s?) and how those relate to the "pair" issue.

I'm sure that's my fault, but can you please provide a concrete, detailed description of what exactly you want the end result to be? Thanks.

GO


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....






Millisecond Forums


Search