Repeating a practice block or loop?
Hello!
For my dissertation, I am running a cognitive study on 7 year old children. For one of my tasks, the child needs to obtain a baseline percentage correct on their practice trials before they can go on to do the real task.
As my code is now, I have a practice loop which consists of two blocks of practice trials. What I don't know how to do is how to repeat either the whole practice loop or a single practice block if the child needs more practice (as you would imagine, this happens quite often when you're working with 7 year olds).
Is there a way to add a repeat (either manual or automatic) to the code? I think my preference would be for it to be manual (i.e. on a page you could press one button to repeat the practice and press another to move on to the experiment) but if an "automatic" solution (i.e. if the subject gets <XX% correct, then practice loop repeats) is the only way it can be programmed, I'd take that too!
Thanks in advance for your help,
Char
Comments
Hi Charizard,
It would be best to place your practice block in a loop item (and this loop item you just set to 99 cycles or something). Ticking the "show advanced options" box, you'll reveal a break-if statement that is set to
neverby default. You could insert something like=exp.accuracy >= 0.7.Now all you need is an accuracy variable. You could create and update the variable
exp.accuracyin an inline_script item (run phase) that is placed in your trial sequence. To calculate the accuracy, you'll need to divide the amount of correct answers by the amount of trials, so at the start of the experiment you add these in another inline_script:In the trial sequence inline_script, you add to the run phase:
Hope this helps.
Cheers,
Josh
Hi Josh
Thanks -- this is definitely helpful!
So to your knowledge, there isn't a "good" way to program it so that the person running the experiment can decide whether or not to repeat the practice in the moment/during the experiment? (There is a small bit of subjectivity when determining if the child "gets it" or not).
Thanks again!
Char(izard)
Hi Char,
Here is a manual way to repeat 'a practice block'. (In my example it is simple question which is repeated.)
You insert a question (picture or text) with two response options (eg. x and n).
If the first is pressed, the experiment goes on. If the second is pressed, you repeat something.