Attributing itemprobabilities from list


Author
Message
JSerek
JSerek
Respected Member (403 reputation)Respected Member (403 reputation)Respected Member (403 reputation)Respected Member (403 reputation)Respected Member (403 reputation)Respected Member (403 reputation)Respected Member (403 reputation)Respected Member (403 reputation)Respected Member (403 reputation)
Group: Forum Members
Posts: 6, Visits: 30
Hello everyone,

I couldn't find related topic, so I will start a new one. If there is already an answer to my question, please redirect me there.

Problem description:

In order to sum outcomes of lotteries - so that lotteries are really being played behind the scenes - I would like to attribute item probabilities values from another list to /itemprobabilities element like this:

<list lotA>
/ itemprobabilities = [values.pXA; values.pYA]
/ items = (1, 0)
/ poolsize = 5
/ resetinterval = 0
</list>

Values pXA is set to 1 and pYA to 0 in the <values> section. Later on the beggining of each trial I attribute probabilities form list.pXA and list.pYA to these values elements. And the results that are being shown on the screen are correct, but my list.lotA isn't really taking these newly selected values, instead it's using probabilities ascribe in <values> section, so values.pXA is always 1 and values.pYA is always 0. 

Is it possible in Inq5 to ascribe selected values from one list to values in /itemprobabilities element? And if so, how can I do it? 
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
JSerek - Friday, February 1, 2019
Hello everyone,

I couldn't find related topic, so I will start a new one. If there is already an answer to my question, please redirect me there.

Problem description:

In order to sum outcomes of lotteries - so that lotteries are really being played behind the scenes - I would like to attribute item probabilities values from another list to /itemprobabilities element like this:

<list lotA>
/ itemprobabilities = [values.pXA; values.pYA]
/ items = (1, 0)
/ poolsize = 5
/ resetinterval = 0
</list>

Values pXA is set to 1 and pYA to 0 in the <values> section. Later on the beggining of each trial I attribute probabilities form list.pXA and list.pYA to these values elements. And the results that are being shown on the screen are correct, but my list.lotA isn't really taking these newly selected values, instead it's using probabilities ascribe in <values> section, so values.pXA is always 1 and values.pYA is always 0. 

Is it possible in Inq5 to ascribe selected values from one list to values in /itemprobabilities element? And if so, how can I do it? 

At some point during the task, you need to set the two values to the values sampled from the lists and then reset the lotA list for it to take on the new itemprobabilities:

<values>
/ pXA = 1
/ pYA = 0
</values>

<list pXA>
/ items = (0.8)
</list>

<list pYA>
/ items = (0.2)
</list>

<list lotA>
/ itemprobabilities = [values.pXA; values.pYA]
/ items = (1, 0)
/ poolsize = 5
/ resetinterval = 0
</list>

<block myblock>
/ trials = [1=mytrial]
</block>

<trial mytrial>
/ ontrialbegin = [
values.pXA = list.pXA.nextvalue;
values.pYA = list.pYA.nextvalue;
list.lotA.reset();
]
/ validresponse = (57)
</trial>


Edited 5 Years Ago by Dave
JSerek
JSerek
Respected Member (403 reputation)Respected Member (403 reputation)Respected Member (403 reputation)Respected Member (403 reputation)Respected Member (403 reputation)Respected Member (403 reputation)Respected Member (403 reputation)Respected Member (403 reputation)Respected Member (403 reputation)
Group: Forum Members
Posts: 6, Visits: 30

Thank you Dave!

in the mean time I've also found out that syntax below does the work:

/ ontrialbegin = [
list.lotA.itemprobabilities.1 = list.pXA.nextvalue;
list.lotA.itemprobabilities.2 = 1- list.pXA.nextvalue;
]
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search