indexing performance on specific trials

Michiel Spape Michiel.Spape at nottingham.ac.uk
Mon Feb 14 10:11:41 UTC 2011


Hi,
	I'm not sure about the code - do you wish to end practice after Trial1 and Trial5 are accurate? This is what I'd do:
1. Declare two global variables, both as boolean:
Dim trial1isacc as boolean
Dim trial5isacc as Boolean
Dim trialnum as integer
2. Short label here (lbl1)
3. Start experiment with a small inline setting both bools to false
4. Do Training. Every trial, add 1 to Trialnum. Then check the .acc of your stim and set trial1isacc/trial5isacc to true if they happen to be accurate
5. Check to see if either is false, then go to lbl1. And otherwise (but no else necessary) go to next part of the experiment.

More elegant ways are possible, but the above should work. Basically, it's pretty much the same as:
(assuming StartTask is an empty, unreferenced textdisplay
If (Trial1ACC) = true And (Trial 5 ACC) = true Then
   StartTask.Text = "Great!  Start the task. "
   StartTask.Run
Else
   StartTask.Text = "Do practice again."
   StartTask.Run
   Goto lbl1  'label at the beginning of the practice procedure
End If

Just make sure the level is correct.
Best,
Mich



Michiel Spapé
Research Fellow
Perception & Action group
University of Nottingham
School of Psychology
www.cognitology.eu


-----Original Message-----
From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Becky Prince
Sent: 12 February 2011 18:33
To: E-Prime
Subject: indexing performance on specific trials

Hello forum,

I need to end practice trials based on performance on specific
trials.  Right now my practice procedure ends based on the overall
performance (i.e. If Feedback.ACCStats.Mean > .80 Then ... ).  I'm
guessing I should include an InLine script after the practice trials
with a simple 'Select Case' or 'If...Then' statement with this
structure:

If (Trial 1 ACC) = 1 And (Trial 5 ACC) = 1 Then
   StartTask.Text = "Great!  Start the task. "
Else
   StartTask.Text = "Do practice again."
   Feedback.ACCStats.Reset
   StartTask.Run
   Goto StartPrac  'label at the beginning of the practice procedure
End If

It should be obvious from the code above that I can't figure out how
to index the performance on specific trials. I'm sure this is an easy
task for most of you, however I have spent ages going through Ch. 4
(Using E-Basic) and looking through past discussion posts, and I still
cannot figure this out!  Any help is greatly appreciated!

Thanks,
Becky

-- 
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.

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.

-- 
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