<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Dear Anna,<br>
<br>
I've struggled with this question, too, in an experiment where we
showed smoking & food-related pictures and words. We didn't want
more than two stimuli in the same category (i.e., smoking-related image
followed by smoking-related image), yet the selection of the stimuli
was random. Now I think I would try to write a bit of script that would
analyze the last two stimuli and avoid choosing the same type three
times in a row, but I think that might result in a bunch at the end
that would all be the same, which may cause an error.<br>
<br>
I'd be interested in other programmers' thoughts on this one.<br>
<br>
Leisha Wharfield<br>
Decision Research<br>
Eugene, Oregon, USA<br>
<br>
Anna Holmes wrote:<br>
<blockquote type="cite"
cite="mid009201c49ba7$4612fdf0$4bb2a8c0@helencphd1">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.2800.1400" name="GENERATOR">
<style></style>
<div><font face="Garamond" color="#0000ff" size="4">Dear fellow
E-Primers,</font></div>
<div> </div>
<div><font face="Garamond" color="#0000ff" size="4">As an E-Prime
rookie (with no scripting experience), I am hoping that someone may be
able to help me.</font></div>
<div> </div>
<div><font face="Garamond" color="#0000ff" size="4">I am trying to
create a lexical decision priming task with 2 blocks of the following
stimuli:</font></div>
<div><font face="Garamond"><font size="4"><font color="#0000ff"><font>
<table
style="border-style: none; border-width: medium; border-collapse: collapse;"
cellspacing="0" cellpadding="0" border="1">
<tbody>
<tr>
<td
style="border: 0.5pt solid windowtext; padding: 0in 5.4pt; width: 77.4pt; background-color: transparent;"
valign="top" width="103">
<p class="MsoNormal"
style="margin: 0in 0in 0pt; text-align: center;" align="center"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">Number of
trials<o:p></o:p></span></p>
</td>
<td
style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext rgb(236, 233, 216); border-width: 0.5pt 0.5pt 0.5pt medium; padding: 0in 5.4pt; width: 1.25in; background-color: transparent;"
valign="top" width="120">
<p class="MsoNormal"
style="margin: 0in 0in 0pt; text-align: center;" align="center"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">Condition
Number<o:p></o:p></span></p>
</td>
<td
style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext rgb(236, 233, 216); border-width: 0.5pt 0.5pt 0.5pt medium; padding: 0in 5.4pt; width: 152.2pt; background-color: transparent;"
valign="top" width="203">
<p class="MsoNormal"
style="margin: 0in 0in 0pt; text-align: center;" align="center"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">Condition Name<o:p></o:p></span></p>
</td>
<td
style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext rgb(236, 233, 216); border-width: 0.5pt 0.5pt 0.5pt medium; padding: 0in 5.4pt; width: 106.55pt; background-color: transparent;"
valign="top" width="142">
<p class="MsoNormal"
style="margin: 0in 0in 0pt; text-align: center;" align="center"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">Correct
response<o:p></o:p></span></p>
<p class="MsoNormal"
style="margin: 0in 0in 0pt; text-align: center;" align="center"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">(ResponseType)<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td
style="border-style: none solid solid; border-color: rgb(236, 233, 216) windowtext windowtext; border-width: medium 0.5pt 0.5pt; padding: 0in 5.4pt; width: 77.4pt; background-color: transparent;"
valign="top" width="103">
<p class="MsoNormal"
style="margin: 0in 0in 0pt; text-align: center;" align="center"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">12<o:p></o:p></span></p>
</td>
<td
style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 0.5pt 0.5pt medium; padding: 0in 5.4pt; width: 1.25in; background-color: transparent;"
valign="top" width="120">
<p class="MsoNormal"
style="margin: 0in 0in 0pt; text-align: center;" align="center"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">1<o:p></o:p></span></p>
</td>
<td
style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 0.5pt 0.5pt medium; padding: 0in 5.4pt; width: 152.2pt; background-color: transparent;"
valign="top" width="203">
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">Expected-related<o:p></o:p></span></p>
</td>
<td
style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 0.5pt 0.5pt medium; padding: 0in 5.4pt; width: 106.55pt; background-color: transparent;"
valign="top" width="142">
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">Yes (1)<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td
style="border-style: none solid solid; border-color: rgb(236, 233, 216) windowtext windowtext; border-width: medium 0.5pt 0.5pt; padding: 0in 5.4pt; width: 77.4pt; background-color: transparent;"
valign="top" width="103">
<p class="MsoNormal"
style="margin: 0in 0in 0pt; text-align: center;" align="center"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">12<o:p></o:p></span></p>
</td>
<td
style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 0.5pt 0.5pt medium; padding: 0in 5.4pt; width: 1.25in; background-color: transparent;"
valign="top" width="120">
<p class="MsoNormal"
style="margin: 0in 0in 0pt; text-align: center;" align="center"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">2<o:p></o:p></span></p>
</td>
<td
style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 0.5pt 0.5pt medium; padding: 0in 5.4pt; width: 152.2pt; background-color: transparent;"
valign="top" width="203">
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">Expected-unrelated<o:p></o:p></span></p>
</td>
<td
style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 0.5pt 0.5pt medium; padding: 0in 5.4pt; width: 106.55pt; background-color: transparent;"
valign="top" width="142">
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">Yes (1)<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td
style="border-style: none solid solid; border-color: rgb(236, 233, 216) windowtext windowtext; border-width: medium 0.5pt 0.5pt; padding: 0in 5.4pt; width: 77.4pt; background-color: transparent;"
valign="top" width="103">
<p class="MsoNormal"
style="margin: 0in 0in 0pt; text-align: center;" align="center"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">4<o:p></o:p></span></p>
</td>
<td
style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 0.5pt 0.5pt medium; padding: 0in 5.4pt; width: 1.25in; background-color: transparent;"
valign="top" width="120">
<p class="MsoNormal"
style="margin: 0in 0in 0pt; text-align: center;" align="center"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">3<o:p></o:p></span></p>
</td>
<td
style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 0.5pt 0.5pt medium; padding: 0in 5.4pt; width: 152.2pt; background-color: transparent;"
valign="top" width="203">
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">Unexpected-unrelated<o:p></o:p></span></p>
</td>
<td
style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 0.5pt 0.5pt medium; padding: 0in 5.4pt; width: 106.55pt; background-color: transparent;"
valign="top" width="142">
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">Yes (1)<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td
style="border-style: none solid solid; border-color: rgb(236, 233, 216) windowtext windowtext; border-width: medium 0.5pt 0.5pt; padding: 0in 5.4pt; width: 77.4pt; background-color: transparent;"
valign="top" width="103">
<p class="MsoNormal"
style="margin: 0in 0in 0pt; text-align: center;" align="center"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">4<o:p></o:p></span></p>
</td>
<td
style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 0.5pt 0.5pt medium; padding: 0in 5.4pt; width: 1.25in; background-color: transparent;"
valign="top" width="120">
<p class="MsoNormal"
style="margin: 0in 0in 0pt; text-align: center;" align="center"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">4<o:p></o:p></span></p>
</td>
<td
style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 0.5pt 0.5pt medium; padding: 0in 5.4pt; width: 152.2pt; background-color: transparent;"
valign="top" width="203">
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">Unexpected-related<o:p></o:p></span></p>
</td>
<td
style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 0.5pt 0.5pt medium; padding: 0in 5.4pt; width: 106.55pt; background-color: transparent;"
valign="top" width="142">
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">Yes (1)<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td
style="border-style: none solid solid; border-color: rgb(236, 233, 216) windowtext windowtext; border-width: medium 0.5pt 0.5pt; padding: 0in 5.4pt; width: 77.4pt; background-color: transparent;"
valign="top" width="103">
<p class="MsoNormal"
style="margin: 0in 0in 0pt; text-align: center;" align="center"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">12<o:p></o:p></span></p>
</td>
<td
style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 0.5pt 0.5pt medium; padding: 0in 5.4pt; width: 1.25in; background-color: transparent;"
valign="top" width="120">
<p class="MsoNormal"
style="margin: 0in 0in 0pt; text-align: center;" align="center"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">5<o:p></o:p></span></p>
</td>
<td
style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 0.5pt 0.5pt medium; padding: 0in 5.4pt; width: 152.2pt; background-color: transparent;"
valign="top" width="203">
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">Neutral<o:p></o:p></span></p>
</td>
<td
style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 0.5pt 0.5pt medium; padding: 0in 5.4pt; width: 106.55pt; background-color: transparent;"
valign="top" width="142">
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">Yes (1)<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td
style="border-style: none solid solid; border-color: rgb(236, 233, 216) windowtext windowtext; border-width: medium 0.5pt 0.5pt; padding: 0in 5.4pt; width: 77.4pt; background-color: transparent;"
valign="top" width="103">
<p class="MsoNormal"
style="margin: 0in 0in 0pt; text-align: center;" align="center"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">44<o:p></o:p></span></p>
</td>
<td
style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 0.5pt 0.5pt medium; padding: 0in 5.4pt; width: 1.25in; background-color: transparent;"
valign="top" width="120">
<p class="MsoNormal"
style="margin: 0in 0in 0pt; text-align: center;" align="center"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">6<o:p></o:p></span></p>
</td>
<td
style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 0.5pt 0.5pt medium; padding: 0in 5.4pt; width: 152.2pt; background-color: transparent;"
valign="top" width="203">
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">Nonword<o:p></o:p></span></p>
</td>
<td
style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 0.5pt 0.5pt medium; padding: 0in 5.4pt; width: 106.55pt; background-color: transparent;"
valign="top" width="142">
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span
lang="EN-AU" style="color: blue; font-family: Garamond;">No (2)<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</font></font></font></font></div>
<div> </div>
<div><font face="Garamond" color="#0000ff" size="4">I understand that
script can be written (e.g., samples - No Repeats; String Array to
Populate List) such that the same type of stimulus condition is not
presented on consecutive trials (e.g., another related word pair will
not directly follow a related word pair).</font></div>
<div> </div>
<div><font face="Garamond" color="#0000ff" size="4">However, I am
trying to work out if I can randomise my stimuli according to 2
criteria:</font></div>
<ol>
<li><font face="Garamond" color="#0000ff" size="4">That no
condition occurs more than 3 times consecutively</font></li>
<li><font face="Garamond" color="#0000ff" size="4">That no single
response type occurs more than 3 times consecutively (no more than 3
yes (or no) responses in a row)</font></li>
</ol>
<div><font face="Garamond" color="#0000ff" size="4">I have chosen
these two criteria because if I only randomise according to condition,
it will likely result in strings of stimuli that require a 'yes'
response as 5 of the 6 conditions call for the participant to respond
'yes'.</font></div>
<div> </div>
<div><font face="Garamond" color="#0000ff" size="4">Hope my question
is clear although reasonably complicated.</font></div>
<div> </div>
<div><font face="Garamond" color="#0000ff" size="4">Look forward to
any suggestions.</font></div>
<div> </div>
<div><font face="Garamond" color="#0000ff" size="4">Thanks</font></div>
<div><font face="Garamond" color="#0000ff" size="4">Anna</font></div>
<div><font face="Garamond" color="#0000ff" size="4">-----------------------------------------------------------------------<br>
Anna D Holmes. BSpPath(Hons)<br>
Division of Speech Pathology<br>
School of Health and Rehabilitation Sciences<br>
University of Queensland <br>
QLD 4072 Australia<br>
Phone: +61 7 3346 9726<br>
Fax: +61 7 3365 1877<br>
<a href="mailto:a.holmes@uq.edu.au">a.holmes@uq.edu.au</a> </font></div>
</blockquote>
</body>
</html>