Naming a specific trial in the trial list

63 views
Skip to first unread message

Jerry Shen

unread,
Jul 29, 2014, 2:06:53 PM7/29/14
to e-p...@googlegroups.com
Is there a way to label a specific trial with a name? I would like to present a specific trial after a certain number of trials and was wondering if there is an inline code where I can refer to the trial 
ie. If TrialCount = 250 Then display TrialList.ID = 7

Something along the lines of that?

Paul Groot

unread,
Jul 30, 2014, 4:17:24 AM7/30/14
to e-p...@googlegroups.com
Hi Jerry,

There are several way's to do such a thing without using inline script. If the trial list is ran sequentially, you could simply add a specific trial procedure by inserting a row into the list at level 250. This specific trial could have a different name and is configured completely independent of the other trials. However, if you use some kind of trial order randomization, things become slightly more complicated. In that case you would have to put the special trials in a separate list. The two lists with regular and special trials can then be used as nested lists in a master trial list. The master trial list can have two levels: the first having weight=250, nested list=RegularTrialList and proc=RegularTrialProc; the second having weight=1, nested list=SpecialTrialList and proc=SpecialTrialProc. 

Lots of trial and block orders are possible when using nested lists this way. 

Best
Paul




--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+u...@googlegroups.com.
To post to this group, send email to e-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/c646289b-24ad-48c0-a499-203670c27b7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

David McFarlane

unread,
Aug 4, 2014, 3:19:03 PM8/4/14
to e-p...@googlegroups.com
Jerry,

Paul already covered the important part. Just to
answer the question that you asked, if you really
do want or need to access a paticular ("named")
item in a List, you may use List.GetAttrib, e.g.,

MyList.GetAttrib 7, "Stimulus"

See the Factor.GetAttrib topic in the E-Basic
Help facility (go to the List topic and click on
GetAttrib). You would, of course, have to run
List.GetAttrib for each of the attributes that
you wish to retrieve from that List level.

And just to expand on Paul's comments, you may
put all your trial attributes in a nested List
set to Random order, and then use a main List in
Sequential order to run a mixture of trials, breaks, and whatever. E.g.,

MainList (Sequential order):
Weight Nested Procedure
------ -------- --------------
250 StimList TrialProc
1 RestProc
150 StimList TrialProc
1 TrialsDoneProc

with StimList holding all the stimulus attributes
and set to Random order -- E-Prime keeps track of
where it is in the shuffled StimList and just
picks up where it left off (unless you tell it to
Reset) (and yes, we do this in my inline course).

-----
David McFarlane
E-Prime training
online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx
Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster)

/----
Stock reminder: 1) I do not work for PST. 2)
You may reach PST's trained staff (and other
support facilities) at https://support.pstnet.com
. 3) If you do get an answer from PST staff,
please extend the courtesy of posting their reply
back here for the sake of others.
\----


At 7/30/2014 04:17 AM Wednesday, Paul Groot wrote:
>Hi Jerry,
>
>There are several way's to do such a thing
>without using inline script. If the trial list
>is ran sequentially, you could simply add a
>specific trial procedure by inserting a row into
>the list at level 250. This specific trial could
>have a different name and is configured
>completely independent of the other trials.
>However, if you use some kind of trial order
>randomization, things become slightly more
>complicated. In that case you would have to put
>the special trials in a separate list. The two
>lists with regular and special trials can then
>be used as nested lists in a master trial list.
>The master trial list can have two levels: the
>first having weight=250, nested
>list=RegularTrialList and proc=RegularTrialProc;
>the second having weight=1, nested
>list=SpecialTrialList and proc=SpecialTrialProc.Â
>
>Lots of trial and block orders are possible when
>using nested lists this way.Â
>
>Best
>Paul
>
>
>
>
>On 29 July 2014 20:06, Jerry Shen
><<mailto:jerrys...@gmail.com>jerrys...@gmail.com> wrote:
>Is there a way to label a specific trial with a
>name? I would like to present a specific trial
>after a certain number of trials and was
>wondering if there is an inline code where I can refer to the trialÂ

Jerry Shen

unread,
Aug 12, 2014, 2:27:39 PM8/12/14
to e-p...@googlegroups.com
Hey guys! Thanks a lot for your advice. I ended up using the nested list feature in order to produce the randomization. Thanks again for all your help!
Reply all
Reply to author
Forward
0 new messages