accuracy calculation ( feedback ) without the responce none
Hello everyone!
First of all, thank you to all the members of this community. Opensesame is a really great tool but without the possibility of consulting the discussions in this forum it would have taken me much longer to create my experiments.
I will now move on to the description of my problem.
My trials are as follow:
- Inter stimulus interval
- sketchpad with my stimuli (1000ms)
- sketchpad with the previous stimuli plus a question (0ms)
- keyboardresponse1 (2000ms)
- sketchpad with questiton and without stimuli (0) -- show if response is none
- keyboard response2 (infinite) -- show if response is none
- feedback
The problem concerns the calculation of accuracy. In each trial subjects can respond from the appearance of the second scketchpad. If they don't respond in time, a third scketchpad will appear, the same as the previous one but with only the question and without the stimulus to be analysed (the scketchpads are so arranged because I want the subjects to be able to see the stimulus a maximum of 2000ms after the question appears).
When subjects do not make it in time to respond in the second scketchpad (response is none) I do not want that keyboard responce to affect the accuracy calculation. In these cases I would like it to calculate only the responses given to the keyboard response2.
Is there any way to say "don't use 'none' responses in the accuracy calculation?"
Thanks in advance!
Comments
Hi,
the accuracy calculation will only consider the last response, so I think, the third keyboard response should overwrite the second one if it occurs (and no logger/feedback happens in between). Have you tried it out? Maybe play a few trials and make sure that you know exactly how many times you respond correctly or not. Then check whether the script already works correctly or whether there are some adaptations necessary.
Let us know what comes out of it.
Eduard
ps. the feedback in your trial sequence only shows whether the current response was correct or not. To check the accuracy of a block of trials the feedback item must be outside the trial loop. See the beginner's tutorial for a demo on that.
Hi eduard,
thank you for your reply.
I didn't specify that that is the example of a trial inserted in a loop. At the end of the block there is the feedback item and it already calculates my overall accuracy.
In the calculation, for each trial, it considers only one response if the subject responds within "keyboardresponse1" and considers two responses (in the same trial) if the subject responds within "keyboardresponse2". In the latter cases (i.e. when the subject answers at the level of "keyboardresponse2"), I would like it to not consider the "none" response to "keyboardresponse1 " in the accuracy calculation.
I hope I have made myself clear.
Can you maybe share your experiment? The feedback item only works if you don't change default variable names. It will only give proper values if there is a
response_time
, and acorrect
variable. If you use custom variable, you need to implement the computation yourself (summing all correct responses/RTs and divide by the total responses/RTs)Eduard
Hello Eduard,
I have shared my experiment by simplifying it.
Now in the trials you will see as text "aaaa" or "llll" just to tell you what the correct answer key is (in case you want to test to see how it calculates accuracy). I suggest you try to always answer correctly when the face disappears (keyboardresponse2): in this case you will obtain 50% of accuracy.
Thank you!
Hi Angelo,
Actually, I realized, you could simply use co-routines: https://osdoc.cogsci.nl/3.3/manual/structure/coroutines/#using-coroutines
There you can specify how long one keyboard response is open, regardless of what happens on the screen in the mean time. Might be simpler? If not, I can adjust your example. As I said in my previous post, you need to use custom variables.
Eduard
Hi Eduard,
very simple but effective solution!
i didn't know this plugin existed, thank you!
Angelo