I have been struggling for a while now trying to get a macro to work that will calculate % of correct responses to meet a criterion for progressing to the next block of an experiment. I have attached a cut down version of the experiment I am working on. Essentially it presents a number of coloured stimuli and, during the learning phase, the participant has to click the mouse in one of two boxes. Feedback tells them which box is correct. I have used codes for each trial ( ‘correct’ or ‘wrong’). So far I have managed a block level expression which waits until 8 correct responses in a row are achieved before the participant can progress to the next block. However, what I am really looking for is 80% correct (in total) before moving to the next block i.e. the participant shouldn’t have to have all the correct responses occurring consecutively before moving to the next block (this is important as, in later stages of the experiment they will have to look at a larger number of stimuli and I don’t want e.g. one error towards the end of several correct responses to make the whole block repeat again).
The ‘80% correct’ macro I have tried to use was based on one using ‘number of trials with subset, etc.’ This worked with the basic numbers but doesn’t behave the same when using the percentage of trials option. Please can you tell me where I am going wrong.
RPM example expt.zip (144 KB)