<div dir="ltr"><DIV>You mentioned not to use SetWeight while the list is running... but that's actually exactly what I've been doing. I received a reply from PST support saying that this was impossible, but after following your suggestion of adding List.Reset, the switch ratio works exactly as intended. They also sent me an example design (attached) using multiple lists with different weights, like you suggested, but since this is not able to make a trial selection based on the previous trial, it results in a switch ratio of 1:3.5 instead of 1:3. I know how to solve this, but again, it involves using SetWeight to set the weight of the inappropriate list to zero while it's running. </DIV>
<DIV> </DIV>
<DIV>Does List.Reset have especially disruptive effects on timing, or does running it on every trial have other negative effects I'm not aware of? I can see why this method is a bit unorthodox, but since it works, I feel like I need a very good reason not to use it.</DIV>
<DIV> </DIV>
<DIV>The cheap solution is probably a good option, but I'd still like to understand why this is so difficult.</DIV>
<DIV><BR>On Tuesday, April 1, 2014 4:58:48 PM UTC+2, McFarlane, David wrote:</DIV>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class=gmail_quote>Well... Implementing specific constraints on randomization at <BR>runtime gets very tricky, try searching for discussions using terms <BR>such as "random", "pseudorandom", "pseudo-random", "constrain", and <BR>"constraint". Offhand, I feel very leery of any approach using <BR>List.SetWeight, and I especially hope that you do not try that while <BR>the List itself is running! <BR><BR>PST shows one time-honored (though crude) method for implementing <BR>on-the-fly randomization with contstraints in their "No Repeats on <BR>Consecutive Trials" examples on their website, and you might adapt <BR>that approach for your program. That method, however, is a sort of <BR>nondeterministic "bogosort" (look that up on Wikipedia) which suffers <BR>several problems. <BR><BR>The cheap answer, which you will find in other discussions, is just <BR>to randomize everything before runtime outside of E-Prime. Construct <BR>a "random" sequence that has the properties you seek, then implement <BR>that as a Sequential List in E-Prime. If you want different random <BR>orders for different subjects, then construct a few more sequences <BR>outside of E-Prime, implement each of your sequences as a nested List <BR>(running in Sequential order), and then have E-Prime pick one of <BR>those nested Lists on each run (perhaps using a main List set to <BR>Counterbalance order). Or, generate your sequence outside of E-Prime <BR>as a properly formatted .txt or .xml file, and then use List <BR>LoadMethod "File" to read in the sequence at runtime. <BR><BR>-- David McFarlane <BR><BR><BR>At 4/1/2014 08:10 AM Tuesday, LaurensK90 wrote: <BR>>Now that I have access to E-Basic help again I see that I was <BR>>mistaken about the function of List.Reset, and appending this to the <BR>>end of the script caused the experiment to create the appropriate <BR>>switch ratio. So thank you very much for that suggestion! <BR>> <BR>>However, my attempt at preventing the experiment from running more <BR>>than five consecutive trials of the same type is still not <BR>>effective. I suspect there's something wrong with the way I'm trying <BR>>to increment the counter variable, which leads to the second If <BR>>statement never getting triggered. Could that be the problem? <BR><BR></BLOCKQUOTE></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:e-prime+unsubscribe@googlegroups.com">e-prime+unsubscribe@googlegroups.com</a>.<br />
To post to this group, send email to <a href="mailto:e-prime@googlegroups.com">e-prime@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/1acb9c40-5f4b-43dc-9805-7481c32a4456%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/e-prime/1acb9c40-5f4b-43dc-9805-7481c32a4456%40googlegroups.com</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />