Millisecond Forums

Looping Trials Until Specific Response or Certain Number

https://forums.millisecond.com/Topic13541.aspx

By nashby - 6/14/2014

Hello everyone, back with another question.

So, I am currently designing an experiment where a participant sample from options and get feedback on each sample. This part is easy enough (i.e., giving feedback).

The hard part is that they can sample up to a 100 times, but can stop sampling at any point before that (e.g., after 10 samples, 5 samples, 3 samples).

What I was going to do is just create one trial and then keep appending it back into a block until either 100 choices were made, or a specific response was given, but that doesn't seem to be an option. Any thoughts on how I could do this?
By Dave - 6/14/2014

Have a <block> run 100 trials (the trial needs to offer a "stop sampling" response option") and define a proper /stop condition for the <block>:

<block myblock>
/ trials = [1-100=samplingtrial]
/ stop = [trial.samplingtrial.response=="stopsampling"]
...
</block>