<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Gautami;
panose-1:2 0 5 0 0 0 0 0 0 0;}
@font-face
{font-family:Gautami;
panose-1:2 0 5 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Hi,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>So, do I understand correct you want to use the same e-prime data-file for more than one subject? Any good reason for that? Normally, I’d say, just rerun the experiment, type in subject number, and from the .edat files, filter out those subjects who have few data (in E-DataAid, count number of trials, write those subjects with few trials on a piece of paper, and filter those out from analysis) – I think that’s pretty much what we always do (whether subjects be infants or psych students). What you seem to want to do is rather counterintuitive: if a participant completes 60% of trials, at which point you want to increase subject number, why should this participant suddenly have 2 subject numbers (so that subject with the next subject number, which is actually the same subject, now has 40% of trials at most)? Why not just create a filter? You can even do that online:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Create user script (global, alt+5, user tab) variables:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Dim TotalTrials as integer<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Dim PropDone as double<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Initialise variable (only TotalTrials, because initialising in basic also sets to 0), by adding to beginning of experiment (upmost procedure, before everything else):<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>TotalTrials = 300 ‘or whatever is the maximum<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Check to see, during each trial, how far the subject is, by adding to end of trial procedure:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>PropDone = PropDone + 1 / TotalTrials<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>c.SetAttrib “PropDone”, PropDone<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>voila, and by finding the maximum of propdone, per subject, you can find how many trials the participant has done. You can take it from there, coding the participant number, for whatever reason, in there as well (I’d just suggest not to use the subject number attribute) and increasing it if need be.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>If, on the other hand, you’re doing some infinite loop thing, where you want ALL infants in 1 edat, perhaps it might be a good idea to build in a sneaky key. So that, if you have some textdisplay, and you press X (for next), a variable is updated:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>User script:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Dim CurrentParticipant as Integer<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Initialise:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>currentparticipant = c.GetAttrib (“Subject”)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>After critical stimulus:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>If myCriticalStimulus.RESP = X then currentparticipant = currentparticipant + 1<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>c.SetAttrib “CurrentParticipant”, currentparticipant<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Something like that. Hope that helps.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Best,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Mich<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#16355A'>Michiel Spapé<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#16355A'>Research Fellow<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#16355A'>Perception & Action group<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#16355A'>University of Nottingham<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#16355A'>School of Psychology<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#16355A'>www.cognitology.eu</span></i><i><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#16355A'><o:p></o:p></span></i></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> e-prime@googlegroups.com [mailto:e-prime@googlegroups.com] <b>On Behalf Of </b>Meltem BALLAN<br><b>Sent:</b> 13 October 2011 13:01<br><b>To:</b> e-prime@googlegroups.com<br><b>Subject:</b> Re: incrementing the trial count<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><p>Hi All,<br>Thank you.I did all you described but somehow I could not call from another function. I am running infant subjects. So it is not a case for me to complete the task 60% of the time. Therefore, I wanna count the max number of trials. If it is more than 60% I wanna increase the subject number. I followed instructions but increment did not work.<br>Thanks<br>Meltem<o:p></o:p></p><div><p class=MsoNormal>On Oct 13, 2011 7:02 AM, "liwenna" <<a href="mailto:liwenna@gmail.com">liwenna@gmail.com</a>> wrote:<o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Not sure if this is what you're looking for (if I remember correctly<br>the e-primer is quite clear on this one) but you did add an inline<br>that increments the value assigned to totaltrial on each trial? I.e.<br>an inline on the proc reading:<br><br>totaltrial = totaltrial +1<br>(followed by another line to log it onto the attribute trialcount: c.<br>SetAttrib "TrialCount", totalTrial) ?<br><br>On Oct 12, 7:02 pm, Meltem BALLAN <<a href="mailto:meltembal...@gmail.com">meltembal...@gmail.com</a>> wrote:<br>> Mich,<br>> No worries. I was looking to find a source. I used the explanation in the<br>> E-PRIME documentation but did not work. I read the E-PRIMER. It must be<br>> something I am missing within the lines.<br>> Thanks<br>> Meltem<br>><br>> On Wed, Oct 12, 2011 at 12:49 PM, Michiel Spape <<br>><br>><br>><br>><br>><br>><br>><br>><br>><br>> <a href="mailto:Michiel.Sp...@nottingham.ac.uk">Michiel.Sp...@nottingham.ac.uk</a>> wrote:<br>> > Hi Meltem,****<br>><br>> > Not to sound sour, but these are quite elementary questions for which I<br>> > think you might really want to do a quick walk through some tutorials. For<br>> > example, our very ownhttp://<a href="http://step.psy.cmu.edu/materials/EPrimer.pdfhas" target="_blank">step.psy.cmu.edu/materials/EPrimer.pdfhas</a> an<br>> > almost exact answer to what you seem to be looking for, in one of the two<br>> > last chapters. Also, the quick start is a very useful way to begin. I think,<br>> > with some additional information (such as what do you mean by Stimulus<br>> > count?), anybody could answer your question, but you’d really be doing<br>> > yourself a favour to take two days to learn how to use the software. Sorry<br>> > to be not of more use.****<br>><br>> > ** **<br>><br>> > Best,****<br>><br>> > Mich****<br>><br>> > ** **<br>><br>> > *Michiel Spapé*<br>><br>> > *Research Fellow*<br>><br>> > *Perception & Action group*<br>><br>> > *University of Nottingham*<br>><br>> > *School of Psychology*<br>><br>> > *<a href="http://www.cognitology.eu" target="_blank">www.cognitology.eu</a>***<br>><br>> > ** **<br>><br>> > *From:* <a href="mailto:e-prime@googlegroups.com">e-prime@googlegroups.com</a> [mailto:<a href="mailto:e-prime@googlegroups.com">e-prime@googlegroups.com</a>] *On<br>> > Behalf Of *Meltem BALLAN<br>> > *Sent:* 12 October 2011 17:42<br>> > *To:* <a href="mailto:e-prime@googlegroups.com">e-prime@googlegroups.com</a><br>> > *Subject:* incrementing the trial count****<br>><br>> > ** **<br>><br>> > Hi All,<br>> > I have a question that I cannot figure out by myself. I am trying to add a<br>> > counter in my task which is counting the total number of trials during the<br>> > task. I defined a global variable as totalTrial (in User Script) and<br>> > assigned it as TrialCount (c. SetAttrib "TrialCount", totalTrial). My<br>> > dillemma is how I can integrate TrialCount with my Stimulus count.<br>> > I tried as Trial=TrialCount but it did not work.<br>> > Any idea?<br>> > Thanks<br>> > Meltem<br>><br>> > --<br>> > Meltem Ballan, PhD<br>> > Department of Psychiatry, CB# 7160<br>> > University of North Carolina School of Medicine<br>> > 7023 Neurosciences Hospital<br>> > Chapel Hill, NC 27599-7160****<br>><br>> > --<br>> > You received this message because you are subscribed to the Google Groups<br>> > "E-Prime" group.<br>> > To post to this group, send email to <a href="mailto:e-prime@googlegroups.com">e-prime@googlegroups.com</a>.<br>> > To unsubscribe from this group, send email to<br>> > <a href="mailto:e-prime%2Bunsubscribe@googlegroups.com">e-prime+unsubscribe@googlegroups.com</a>.<br>> > For more options, visit this group at<br>> ><a href="http://groups.google.com/group/e-prime?hl=en.****" target="_blank">http://groups.google.com/group/e-prime?hl=en.****</a><br>><br>> > This message and any attachment are intended solely for the addressee and<br>> > may contain confidential information. If you have received this message in<br>> > error, please send it back to me, and immediately delete it. Please do not<br>> > use, copy or disclose the information contained in this message or in any<br>> > attachment. Any views or opinions expressed by the author of this email do<br>> > not necessarily reflect the views of the University of Nottingham.<br>><br>> > This message has been checked for viruses but the contents of an attachment<br>> > may still contain software viruses which could damage your computer system:<br>> > you are advised to perform your own checks. Email communications with the<br>> > University of Nottingham may be monitored as permitted by UK legislation.<br>><br>> > --<br>> > You received this message because you are subscribed to the Google Groups<br>> > "E-Prime" group.<br>> > To post to this group, send email to <a href="mailto:e-prime@googlegroups.com">e-prime@googlegroups.com</a>.<br>> > To unsubscribe from this group, send email to<br>> > <a href="mailto:e-prime%2Bunsubscribe@googlegroups.com">e-prime+unsubscribe@googlegroups.com</a>.<br>> > For more options, visit this group at<br>> ><a href="http://groups.google.com/group/e-prime?hl=en" target="_blank">http://groups.google.com/group/e-prime?hl=en</a>.<br>><br>> --<br>> Meltem Ballan, PhD<br>> Department of Psychiatry, CB# 7160<br>> University of North Carolina School of Medicine<br>> 7023 Neurosciences Hospital<br>> Chapel Hill, NC 27599-7160<br><br>--<br>You received this message because you are subscribed to the Google Groups "E-Prime" group.<br>To post to this group, send email to <a href="mailto:e-prime@googlegroups.com">e-prime@googlegroups.com</a>.<br>To unsubscribe from this group, send email to <a href="mailto:e-prime%2Bunsubscribe@googlegroups.com">e-prime+unsubscribe@googlegroups.com</a>.<br>For more options, visit this group at <a href="http://groups.google.com/group/e-prime?hl=en" target="_blank">http://groups.google.com/group/e-prime?hl=en</a>.<o:p></o:p></p></div><p class=MsoNormal>-- <br>You received this message because you are subscribed to the Google Groups "E-Prime" group.<br>To post to this group, send email to e-prime@googlegroups.com.<br>To unsubscribe from this group, send email to e-prime+unsubscribe@googlegroups.com.<br>For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.<o:p></o:p></p></div><br/>
<p>
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.
</p>
<p>
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.
</p></body></html>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To unsubscribe from this group, send email to e-prime+unsubscribe@googlegroups.com.<br />
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.<br />