Attributing itemprobabilities from list


Attributing itemprobabilities from list

Author
Message
JSerek
JSerek
New Member
New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)

Group: Forum Members
Posts: 2, Visits: 9
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
Supreme Being (568K reputation)Supreme Being (568K reputation)Supreme Being (568K reputation)Supreme Being (568K reputation)Supreme Being (568K reputation)Supreme Being (568K reputation)Supreme Being (568K reputation)Supreme Being (568K reputation)Supreme Being (568K reputation)

Group: Administrators
Posts: 9.3K, Visits: 41K
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
3 Weeks Ago by Dave
JSerek
JSerek
New Member
New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)New Member (14 reputation)

Group: Forum Members
Posts: 2, Visits: 9

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


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....






Millisecond Forums


Search