Group: Forum Members
Posts: 7,
Visits: 97
|
Let's say I have 3 different item categories (cars, colors, prizes), each category consists of 6 different items.
<item colors> /1 = "red" /2 = "blue" /3 = "white" /4 = "yellow" /5 = "black" /6 = "green" </item> <item cars> /1 = "Ford" /2 = "Audi" /3 = "BMW" /4 = "Mercedes" /5 = "Toyota" /6 = "Tesla" </item> <item prizes> /1 = "10000" /2 = "15000" /3 = "20000" /4 = "30000" /5 = "40000" /6 = "50000" </item>
Now, I want to create 3 new sets of items (S1,S2,S3) in a specific way: S1 contains 1 random item of each item category, S2 contains 1 random item of each category that is not already in S1, S3 contains all other items. This should leave me with sets of items that look like this: <item S1> /1 = "blue" /2 = "Tesla" /3 = "50000" </item>
<item S2> /1 = "yellow" /2 = "Audi" /3 = "40000" </item>
<item S3> /1 = "red" /2 = "white" /3 = "black" /4 = "green" /5 = "Ford" /6 = "BMW" /7 = "Mercedes" /8 = "Toyota" /9 = "10000" /10 = "15000" /11 = "20000" /12 = "30000" </item>
This "random selection" is only done once at the beginning of the experiment and should be replicable given the same subjectid. (Ideally, all the items should be equally often in S1 and S2 between participants.)
Does anyone have an idea how to do this?
Best, DK
|