Count Trials

liwenna liwenna at gmail.com
Wed Mar 24 10:20:07 UTC 2010


ho... I just notice this now... the last bit of the above post is to
be ignored... when I start writing the post I copy pasted that piece
of code that I use for practicetrials thinking I might tweak it into a
script for Sandra to use, but that didn'thappen and thus I should have
removed the code-part, but apparantly forgot...

On Mar 23, 11:53 am, liwenna <liwe... at gmail.com> wrote:
> Hey Sandra,
>
> The doubling thing of the script you posted confuses me a bit...
>
> Am I correct to think that there are two inlines both containing an
> almost identical script in your experiment? One attached to a
> blockprocedure and another one to a trialprocedure?? Then that where
> it goes wrong... Imagine that the blockprocedure runs once.... it
> first encounters the list and runs it: 14 x a trialprocedure and on
> each trialprocedure it also encounters the other inline with this
> script and for a correct response it adds 1 to trialcount... Now after
> the 14 levels of the list have run... it continues the blockprocedure
> and encounters the inline that tells it to add 1 to trialcount if
> stimpress.acc =1.. but this correct response was already added by the
> other copy of the script on the trialproc.... and thus: trialcount = 8
> is reached after 7 correct.
>
> I think you should simply get rid of the script on the blockproc and
> keep the one on the trialproc as you need the inline to be run once
> every trial. I am not too sure why you have a blockproc but couldn't
> you get rid of it altogether? Of course, I don't have the complete
> information but if you use the blockproc only to initiate the
> triallist an x number of times (and not to differentiate between
> different triallists for instance) than it would be more elegant to
> tell the 14 level triallist to run an x number of cycles: one cycle is
> one 'run' of each level and once all 14 levels have been run it starts
> again with running all levels once for the next cycle. Your script
> will then only need expllist.terminate, if you decide to keep the
> blockproc, I think that just terminating the blocklist (instead of one
> script for terminating blocklist and another for terminating the
> triallist) will suffice for your needs.
>
> => consider removing your blockproc
> => definitely remove one version of the script.
>
> Best,
>
> liwenna
>
> 'This inline organises that the practicetrials are ended when the
> subject
> 'answered 6 or more consecutive trials correct and has practiced at
> least 10 trials.
> 'If after 10 trials the number of consecutive correctly answered
> trials is less than
> '6 it will continue the practicetrials until the 6-consecutive-correct
> criterium is met.
>
>                 if practicetrial.acc = 1 then practicecounter = practicecounter + 1
>
>                 if practicetrial.acc = 0 then practicecounter = 0
>
>                 c.setattrib "practicecorrectcount", practicecounter
>
>                 if c.getattrib ("practicelist.sample") > 9 and practicecounter  > 5
> then practicelist.terminate
>
> if practicetrial.acc = 1 then goto skiplabel
>
> On Mar 22, 9:22 pm, Sandra Wang <wangshusan... at gmail.com> wrote:
>
> > Hello,
>
> > I am a beginner in E-prime and I am currently putting together an
> > study where I would like to terminate the whole experiment when
> > subjects have, say, 8 correct consecutive responses (CCR). There are
> > 14 blocks and 16 trials in each block. So subjects can make 8 correct
> > responses in a row either within the 16 trials in a block or across
> > two block ( e.g., get the last two trials correct in the first block
> > and first 6 trials correct in the second block). I used the following
> > scripts for the trial list as well as the block list. But it only
> > worked when 8 CCR was made within a block, when across two blocks, the
> > experiment was terminated when only 7 CCR was made.
>
> > Please help!!!
>
> > For the trial
> > list:                                                           For
> > the block list:
>
> > If StimPres.ACC = 1 Then
> > If StimPres.ACC = 1 Then
> >         TrialCount = TrialCount + 1
> > TrialCount = TrialCount + 1
> > Else
> > Else
> >         TrialCount = 0
> > TrialCount = 0
> > End
> > If
> > End If
>
> > If  TrialCount >= 8
> > Then                                                  If  TrialCount
>
> > >= 8 Then
>
> >                 Expllist.Terminate
> > Explblock.Terminate
>
> > Else
> > Else
> >                 CriterionMet = False
> > CriterionMet = False
>
> > Thanks very much,
> > Sandra

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.



More information about the Eprime mailing list