Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 5
»
changing itemprobabilities of list mid-script
changing itemprobabilities of list mid-script
Post Reply
Like
56
changing itemprobabilities of list mid-script
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
thv
thv
posted 8 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 23,
Visits: 73
+
x
Dave - Monday, February 13, 2017
+
x
thv - Monday, February 13, 2017
I want to change the itemprobabilities attribute of a list partway through my script. Is there a way to do this?
I tried
/ ontrialend = [list.times.itemprobabilities = [0.2;0.8;]
and several variations of this but did not have any luck (it did not like the syntax)
The proper syntax to do this would be something like:
<list mylist>
/ items = ("A", "B")
/ itemprobabilities = (0.20; 0.80)
/ poolsize = 10
</list>
<trial mytrial>
/ ontrialbegin = [
values.myvalue = list.mylist.nextvalue
]
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>
<values>
/ myvalue = ""
</values>
<text mytext>
/ items = ("<%values.myvalue%>")
</text>
<block more_b>
/ trials = [1-10 = mytrial]
</block>
<block more_a>
/ onblockbegin = [
list.mylist.itemprobabilities.1 = 0.80;
list.mylist.itemprobabilities.2 = 0.20;
]
/ trials = [1-10 = mytrial]
</block>
<expt>
/ blocks = [1=more_b; 2=more_a]
</expt>
Thanks!!
Reply
Like
35
Dave
Dave
posted 8 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 105K
+
x
thv - Monday, February 13, 2017
I want to change the itemprobabilities attribute of a list partway through my script. Is there a way to do this?
I tried
/ ontrialend = [list.times.itemprobabilities = [0.2;0.8;]
and several variations of this but did not have any luck (it did not like the syntax)
The proper syntax to do this would be something like:
<list mylist>
/ items = ("A", "B")
/ itemprobabilities = (0.20; 0.80)
/ poolsize = 10
</list>
<trial mytrial>
/ ontrialbegin = [
values.myvalue = list.mylist.nextvalue
]
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>
<values>
/ myvalue = ""
</values>
<text mytext>
/ items = ("<%values.myvalue%>")
</text>
<block more_b>
/ trials = [1-10 = mytrial]
</block>
<block more_a>
/ onblockbegin = [
list.mylist.itemprobabilities.1 = 0.80;
list.mylist.itemprobabilities.2 = 0.20;
]
/ trials = [1-10 = mytrial]
</block>
<expt>
/ blocks = [1=more_b; 2=more_a]
</expt>
Reply
Like
44
thv
thv
posted 8 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 23,
Visits: 73
I want to change the itemprobabilities attribute of a list partway through my script. Is there a way to do this?
I tried
/ ontrialend = [list.times.itemprobabilities = [0.2;0.8;]
and several variations of this but did not have any luck (it did not like the syntax)
Reply
Like
56
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
56
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search