probabilistic stimuli

David McFarlane mcfarla9 at msu.edu
Fri Oct 25 17:53:59 UTC 2013


One way to do this, maybe some others will come up with alternatives...

Suppose your stimulus is named StimText, and you use an attribute 
reference, "[FollowupImageFile]", for the image file in the following 
stimulus.  Then in inline code after StimText and before your 
followup stimulus, do something like the following:

     If (StimText.ACC And (PRNG.GetNext() < 0.8)) Then
         c.SetAttrib "FollowupImageFile", "CorrectFollowupImageFile"
     Else
         c.SetAttrib "FollowupImageFile", "OtherFollowupImageFile"
     End If

See the PRNG and related topics in the E-Basic Help facility.

BTW, the comparison "< 0.8" will work for all practical purposes, but 
you might consider whether "<= 0.8" would be more canonically correct 
-- I leave that as an exercise to the reader.

-----
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) PST's trained staff 
take any and all questions at https://support.pstnet.com , and they 
strive to respond to all requests in 24-48 hours, so make full use of 
it.  3) In addition, PST offers several instructional videos on their 
YouTube channel (http://www.youtube.com/user/PSTNET ).  4) 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 10/23/2013 12:55 PM Wednesday, Pauline FAVRE wrote:
>Dear E-prime users,
>I try to control the occurrence of the a stimulus, i.e., during the 
>experiment, each trial consist first of a presentation of a stimulus 
>and then I would like that another image appears for only 80% of 
>correct responses on the previous stimulus (and different images for 
>the remaining 20% and the incorrect responses).
>
>In summary, I just would like that a specific stimuli appears in 80 
>% of the cases.
>
>Is there an inline script that permit that a stimuli appears only in 
>a determined percentage of trials?
>
>Thank you very much for your help!

-- 
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+unsubscribe at googlegroups.com.
To post to this group, send email to e-prime at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/526ab080.0286320a.7189.321eSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
For more options, visit https://groups.google.com/groups/opt_out.



More information about the Eprime mailing list